Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
540a9fac
Commit
540a9fac
authored
Jul 03, 2020
by
Ben Bodenmiller
Committed by
Marcel Amirault
Jul 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use consistent spacing with yaml arrays in docs
parent
e982a73d
Changes
30
Show whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
432 additions
and
443 deletions
+432
-443
doc/administration/monitoring/prometheus/index.md
doc/administration/monitoring/prometheus/index.md
+48
-48
doc/ci/caching/index.md
doc/ci/caching/index.md
+28
-28
doc/ci/docker/using_docker_images.md
doc/ci/docker/using_docker_images.md
+37
-37
doc/ci/environments/index.md
doc/ci/environments/index.md
+6
-6
doc/ci/examples/deploy_spring_boot_to_cloud_foundry/index.md
doc/ci/examples/deploy_spring_boot_to_cloud_foundry/index.md
+8
-8
doc/ci/examples/deployment/README.md
doc/ci/examples/deployment/README.md
+13
-13
doc/ci/examples/deployment/composer-npm-deploy.md
doc/ci/examples/deployment/composer-npm-deploy.md
+1
-1
doc/ci/examples/devops_and_game_dev_with_gitlab_ci_cd/index.md
...i/examples/devops_and_game_dev_with_gitlab_ci_cd/index.md
+98
-98
doc/ci/examples/php.md
doc/ci/examples/php.md
+18
-18
doc/ci/examples/test-and-deploy-python-application-to-heroku.md
.../examples/test-and-deploy-python-application-to-heroku.md
+16
-16
doc/ci/jenkins/index.md
doc/ci/jenkins/index.md
+2
-2
doc/ci/merge_request_pipelines/index.md
doc/ci/merge_request_pipelines/index.md
+3
-3
doc/ci/migration/circleci.md
doc/ci/migration/circleci.md
+2
-2
doc/ci/pipelines/index.md
doc/ci/pipelines/index.md
+3
-3
doc/ci/pipelines/job_artifacts.md
doc/ci/pipelines/job_artifacts.md
+3
-3
doc/ci/triggers/README.md
doc/ci/triggers/README.md
+14
-14
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+7
-7
doc/development/documentation/site_architecture/index.md
doc/development/documentation/site_architecture/index.md
+3
-3
doc/development/prometheus_metrics.md
doc/development/prometheus_metrics.md
+10
-10
doc/topics/autodevops/customize.md
doc/topics/autodevops/customize.md
+1
-1
doc/topics/autodevops/stages.md
doc/topics/autodevops/stages.md
+15
-15
doc/user/clusters/crossplane.md
doc/user/clusters/crossplane.md
+12
-12
doc/user/clusters/management_project.md
doc/user/clusters/management_project.md
+1
-1
doc/user/gitlab_com/index.md
doc/user/gitlab_com/index.md
+7
-7
doc/user/group/clusters/index.md
doc/user/group/clusters/index.md
+2
-2
doc/user/project/clusters/add_remove_clusters.md
doc/user/project/clusters/add_remove_clusters.md
+3
-3
doc/user/project/clusters/index.md
doc/user/project/clusters/index.md
+2
-2
doc/user/project/clusters/serverless/aws.md
doc/user/project/clusters/serverless/aws.md
+1
-11
doc/user/project/clusters/serverless/index.md
doc/user/project/clusters/serverless/index.md
+18
-18
doc/user/project/integrations/prometheus.md
doc/user/project/integrations/prometheus.md
+50
-51
No files found.
doc/administration/monitoring/prometheus/index.md
View file @
540a9fac
doc/ci/caching/index.md
View file @
540a9fac
...
...
@@ -256,9 +256,9 @@ cache:
-
vendor/
before_script
:
# Install and run Composer
-
curl --show-error --silent https://getcomposer.org/installer | php
-
php composer.phar install
# Install and run Composer
-
curl --show-error --silent https://getcomposer.org/installer | php
-
php composer.phar install
test
:
script
:
...
...
@@ -391,11 +391,11 @@ stages:
```
yaml
stages
:
-
build
-
test
-
build
-
test
before_script
:
-
echo "Hello"
-
echo "Hello"
job A
:
stage
:
build
...
...
@@ -483,8 +483,8 @@ cache when the pipeline is run for a second time.
```
yaml
stages
:
-
build
-
test
-
build
-
test
job A
:
stage
:
build
...
...
@@ -520,8 +520,8 @@ will be different):
```
yaml
stages
:
-
build
-
test
-
build
-
test
job A
:
stage
:
build
...
...
doc/ci/docker/using_docker_images.md
View file @
540a9fac
...
...
@@ -176,7 +176,7 @@ You can then use for example the [tutum/wordpress](https://hub.docker.com/r/tutu
```
yaml
services
:
-
tutum/wordpress:latest
-
tutum/wordpress:latest
```
If you don't
[
specify a service alias
](
#available-settings-for-services
)
,
...
...
@@ -292,7 +292,7 @@ variables:
POSTGRES_INITDB_ARGS
:
"
--encoding=UTF8
--data-checksums"
services
:
-
name
:
postgres:11.7
-
name
:
postgres:11.7
alias
:
db
entrypoint
:
[
"
docker-entrypoint.sh"
]
command
:
[
"
postgres"
]
...
...
@@ -302,7 +302,7 @@ image:
entrypoint
:
[
"
/bin/bash"
]
before_script
:
-
bundle install
-
bundle install
test
:
script
:
...
...
@@ -378,8 +378,8 @@ would not work properly:
```
yaml
services
:
-
mysql:latest
-
mysql:latest
-
mysql:latest
-
mysql:latest
```
The Runner would start two containers using the
`mysql:latest`
image, but both
...
...
@@ -392,9 +392,9 @@ look like:
```
yaml
services
:
-
name
:
mysql:latest
-
name
:
mysql:latest
alias
:
mysql-1
-
name
:
mysql:latest
-
name
:
mysql:latest
alias
:
mysql-2
```
...
...
@@ -427,7 +427,7 @@ CMD ["/usr/bin/super-sql", "run"]
# .gitlab-ci.yml
services
:
-
my-super-sql:latest
-
my-super-sql:latest
```
After the new extended Docker configuration options, you can now simply
...
...
@@ -437,7 +437,7 @@ set a `command` in `.gitlab-ci.yml`, like:
# .gitlab-ci.yml
services
:
-
name
:
super/sql:latest
-
name
:
super/sql:latest
command
:
[
"
/usr/bin/super-sql"
,
"
run"
]
```
...
...
doc/ci/environments/index.md
View file @
540a9fac
doc/ci/examples/deploy_spring_boot_to_cloud_foundry/index.md
View file @
540a9fac
...
...
@@ -61,7 +61,7 @@ content:
```yaml
---
applications:
-
name: gitlab-hello-world
-
name: gitlab-hello-world
random-route: true
memory: 1G
path: target/demo-0.0.1-SNAPSHOT.jar
...
...
doc/ci/examples/deployment/README.md
View file @
540a9fac
doc/ci/examples/deployment/composer-npm-deploy.md
View file @
540a9fac
doc/ci/examples/devops_and_game_dev_with_gitlab_ci_cd/index.md
View file @
540a9fac
doc/ci/examples/php.md
View file @
540a9fac
...
...
@@ -76,7 +76,7 @@ environment, let's add it in `.gitlab-ci.yml`:
...
before_script
:
-
bash ci/docker_install.sh > /dev/null
-
bash ci/docker_install.sh > /dev/null
...
```
...
...
@@ -104,7 +104,7 @@ image: php:5.6
before_script
:
# Install dependencies
-
bash ci/docker_install.sh > /dev/null
-
bash ci/docker_install.sh > /dev/null
test:app:
script
:
...
...
@@ -119,7 +119,7 @@ with a different Docker image version and the runner will do the rest:
```
yaml
before_script
:
# Install dependencies
-
bash ci/docker_install.sh > /dev/null
-
bash ci/docker_install.sh > /dev/null
# We test PHP5.6
test:5.6:
...
...
@@ -142,7 +142,7 @@ add a `before_script` action:
```
yaml
before_script
:
-
cp my_php.ini /usr/local/etc/php/conf.d/test.ini
-
cp my_php.ini /usr/local/etc/php/conf.d/test.ini
```
Of course,
`my_php.ini`
must be present in the root directory of your repository.
...
...
@@ -217,7 +217,7 @@ you can use [atoum](https://github.com/atoum/atoum):
```
yaml
before_script
:
-
wget http://downloads.atoum.org/nightly/mageekguy.atoum.phar
-
wget http://downloads.atoum.org/nightly/mageekguy.atoum.phar
test:atoum:
script
:
...
...
@@ -242,12 +242,12 @@ cache:
before_script
:
# Install composer dependencies
-
wget https://composer.github.io/installer.sig -O - -q | tr -d '\n' > installer.sig
-
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
-
php -r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
-
php composer-setup.php
-
php -r "unlink('composer-setup.php'); unlink('installer.sig');"
-
php composer.phar install
-
wget https://composer.github.io/installer.sig -O - -q | tr -d '\n' > installer.sig
-
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
-
php -r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
-
php composer-setup.php
-
php -r "unlink('composer-setup.php'); unlink('installer.sig');"
-
php composer.phar install
...
```
...
...
doc/ci/examples/test-and-deploy-python-application-to-heroku.md
View file @
540a9fac
doc/ci/jenkins/index.md
View file @
540a9fac
doc/ci/merge_request_pipelines/index.md
View file @
540a9fac
doc/ci/migration/circleci.md
View file @
540a9fac
doc/ci/pipelines/index.md
View file @
540a9fac
doc/ci/pipelines/job_artifacts.md
View file @
540a9fac
doc/ci/triggers/README.md
View file @
540a9fac
...
...
@@ -235,9 +235,9 @@ variable is non-zero, `make upload` is run.
```
yaml
stages
:
-
test
-
build
-
package
-
test
-
build
-
package
run_tests
:
stage
:
test
...
...
doc/ci/yaml/README.md
View file @
540a9fac
...
...
@@ -3743,9 +3743,9 @@ Combining the individual examples given above for `release`, we'd have the follo
```
yaml
stages
:
-
build
-
test
-
release-stg
-
build
-
test
-
release-stg
release_job
:
stage
:
release
...
...
@@ -4331,11 +4331,11 @@ Example:
```
yaml
.something_before
:
&something_before
-
echo 'something before'
-
echo 'something before'
.something_after
:
&something_after
-
echo 'something after'
-
echo 'another thing after'
-
echo 'something after'
-
echo 'another thing after'
job_name
:
before_script
:
...
...
@@ -4357,7 +4357,7 @@ For example:
```
yaml
.something
:
&something
-
echo 'something'
-
echo 'something'
job_name
:
script
:
...
...
doc/development/documentation/site_architecture/index.md
View file @
540a9fac
...
...
@@ -152,9 +152,9 @@ Suppose we have the `content/_data/versions.yaml` file with the content:
```
yaml
versions
:
-
10.6
-
10.5
-
10.4
-
10.6
-
10.5
-
10.4
```
We can then loop over the
`versions`
array with something like:
...
...
doc/development/prometheus_metrics.md
View file @
540a9fac
doc/topics/autodevops/customize.md
View file @
540a9fac
doc/topics/autodevops/stages.md
View file @
540a9fac
doc/user/clusters/crossplane.md
View file @
540a9fac
doc/user/clusters/management_project.md
View file @
540a9fac
...
...
@@ -97,7 +97,7 @@ Development, Staging, and Production cluster respectively.
```
yaml
stages
:
-
deploy
-
deploy
configure development cluster
:
stage
:
deploy
...
...
doc/user/gitlab_com/index.md
View file @
540a9fac
doc/user/group/clusters/index.md
View file @
540a9fac
...
...
@@ -127,8 +127,8 @@ And the following environments are set in [`.gitlab-ci.yml`](../../../ci/yaml/RE
```
yaml
stages
:
-
test
-
deploy
-
test
-
deploy
test
:
stage
:
test
...
...
doc/user/project/clusters/add_remove_clusters.md
View file @
540a9fac
doc/user/project/clusters/index.md
View file @
540a9fac
...
...
@@ -99,8 +99,8 @@ And the following environments are set in
```
yaml
stages
:
-
test
-
deploy
-
test
-
deploy
test
:
stage
:
test
...
...
doc/user/project/clusters/serverless/aws.md
View file @
540a9fac
...
...
@@ -392,29 +392,19 @@ want to store your package:
image
:
python:latest
stages
:
-
deploy
production
:
stage
:
deploy
before_script
:
-
pip3 install awscli --upgrade
-
pip3 install aws-sam-cli --upgrade
script
:
-
sam build
-
sam package --output-template-file packaged.yaml --s3-bucket <S3_bucket_name>
-
sam deploy --template-file packaged.yaml --stack-name gitlabpoc --s3-bucket <S3_bucket_name> --capabilities CAPABILITY_IAM --region us-east-1
environment
:
production
```
```
Let’s examine the configuration file more closely:
...
...
doc/user/project/clusters/serverless/index.md
View file @
540a9fac
doc/user/project/integrations/prometheus.md
View file @
540a9fac
...
...
@@ -641,7 +641,7 @@ To add a stacked column panel type to a dashboard, look at the following sample
dashboard
:
'
Dashboard
title'
priority
:
1
panel_groups
:
-
group
:
'
Group
Title'
-
group
:
'
Group
Title'
priority
:
5
panels
:
-
type
:
'
stacked-column'
...
...
@@ -659,7 +659,6 @@ panel_groups:
label
:
"
memory
query
2"
unit
:
"
count"
series_name
:
'
group
2'
```
![
stacked column panel type
](
img/prometheus_dashboard_stacked_column_panel_type_v12_8.png
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment