Commit 75361309 authored by Marcel Amirault's avatar Marcel Amirault

Update yaml codeblocks

Ran yamllint on yaml codeblocks to identify
minor formatting inconsistencies
parent 142d2df5
...@@ -179,12 +179,12 @@ You can override cache settings without overwriting the global cache by using ...@@ -179,12 +179,12 @@ You can override cache settings without overwriting the global cache by using
```yaml ```yaml
cache: &global_cache cache: &global_cache
key: ${CI_COMMIT_REF_SLUG} key: ${CI_COMMIT_REF_SLUG}
paths: paths:
- node_modules/ - node_modules/
- public/ - public/
- vendor/ - vendor/
policy: pull-push policy: pull-push
job: job:
cache: cache:
...@@ -281,7 +281,7 @@ image: python:latest ...@@ -281,7 +281,7 @@ image: python:latest
# Change pip's cache directory to be inside the project directory since we can # Change pip's cache directory to be inside the project directory since we can
# only cache local items. # only cache local items.
variables: variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
# Pip's cache doesn't store the python packages # Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching # https://pip.pypa.io/en/stable/reference/pip_install/#caching
......
...@@ -56,7 +56,7 @@ Some credentials are required to be able to run `aws` commands: ...@@ -56,7 +56,7 @@ Some credentials are required to be able to run `aws` commands:
```yaml ```yaml
deploy: deploy:
stage: deploy stage: deploy
image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest # see the note below image: registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest # see the note below
script: script:
- aws s3 ... - aws s3 ...
- aws create-deployment ... - aws create-deployment ...
......
...@@ -85,13 +85,13 @@ This can be solved by adding your CA's certificate to the kaniko certificate ...@@ -85,13 +85,13 @@ This can be solved by adding your CA's certificate to the kaniko certificate
store: store:
```yaml ```yaml
before_script: before_script:
- mkdir -p /kaniko/.docker - mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- | - |
echo "-----BEGIN CERTIFICATE----- echo "-----BEGIN CERTIFICATE-----
... ...
-----END CERTIFICATE-----" >> /kaniko/ssl/certs/additional-ca-cert-bundle.crt -----END CERTIFICATE-----" >> /kaniko/ssl/certs/additional-ca-cert-bundle.crt
``` ```
## Video walkthrough of a working example ## Video walkthrough of a working example
......
...@@ -228,6 +228,7 @@ deploy_terraform: ...@@ -228,6 +228,7 @@ deploy_terraform:
stage: deploy stage: deploy
script: script:
# Your Review App deployment scripts - for a working example please check https://gitlab.com/Flockademic/Flockademic/blob/5a45f1c2412e93810fab50e2dab8949e2d0633c7/.gitlab-ci.yml#L315 # Your Review App deployment scripts - for a working example please check https://gitlab.com/Flockademic/Flockademic/blob/5a45f1c2412e93810fab50e2dab8949e2d0633c7/.gitlab-ci.yml#L315
- echo
e2e:firefox: e2e:firefox:
stage: confidence-check stage: confidence-check
services: services:
......
...@@ -566,15 +566,11 @@ Also set the variables `DB_HOST` to `mysql` and `DB_USERNAME` to `root`, which a ...@@ -566,15 +566,11 @@ Also set the variables `DB_HOST` to `mysql` and `DB_USERNAME` to `root`, which a
We define `DB_HOST` as `mysql` instead of `127.0.0.1`, as we use MySQL Docker image as a service which [is linked to the main Docker image](../../docker/using_docker_images.md#how-services-are-linked-to-the-job). We define `DB_HOST` as `mysql` instead of `127.0.0.1`, as we use MySQL Docker image as a service which [is linked to the main Docker image](../../docker/using_docker_images.md#how-services-are-linked-to-the-job).
```yaml ```yaml
...
variables: variables:
MYSQL_DATABASE: homestead MYSQL_DATABASE: homestead
MYSQL_ROOT_PASSWORD: secret MYSQL_ROOT_PASSWORD: secret
DB_HOST: mysql DB_HOST: mysql
DB_USERNAME: root DB_USERNAME: root
...
``` ```
#### Unit Test as the first job #### Unit Test as the first job
...@@ -584,8 +580,6 @@ We defined the required shell scripts as an array of the [script](../../yaml/REA ...@@ -584,8 +580,6 @@ We defined the required shell scripts as an array of the [script](../../yaml/REA
These scripts are some Artisan commands to prepare the Laravel, and, at the end of the script, we'll run the tests by `PHPUnit`. These scripts are some Artisan commands to prepare the Laravel, and, at the end of the script, we'll run the tests by `PHPUnit`.
```yaml ```yaml
...
unit_test: unit_test:
script: script:
# Install app dependencies # Install app dependencies
...@@ -598,8 +592,6 @@ unit_test: ...@@ -598,8 +592,6 @@ unit_test:
- php artisan migrate - php artisan migrate
# Run tests # Run tests
- vendor/bin/phpunit - vendor/bin/phpunit
...
``` ```
#### Deploy to production #### Deploy to production
...@@ -615,8 +607,6 @@ The `only` keyword tells GitLab CI/CD that the job should be executed only when ...@@ -615,8 +607,6 @@ The `only` keyword tells GitLab CI/CD that the job should be executed only when
Lastly, `when: manual` is used to turn the job from running automatically to a manual action. Lastly, `when: manual` is used to turn the job from running automatically to a manual action.
```yaml ```yaml
...
deploy_production: deploy_production:
script: script:
# Add the private SSH key to the build environment # Add the private SSH key to the build environment
......
...@@ -73,24 +73,16 @@ Now that we created the script that contains all prerequisites for our build ...@@ -73,24 +73,16 @@ Now that we created the script that contains all prerequisites for our build
environment, let's add it in `.gitlab-ci.yml`: environment, let's add it in `.gitlab-ci.yml`:
```yaml ```yaml
...
before_script: before_script:
- bash ci/docker_install.sh > /dev/null - bash ci/docker_install.sh > /dev/null
...
``` ```
Last step, run the actual tests using `phpunit`: Last step, run the actual tests using `phpunit`:
```yaml ```yaml
...
test:app: test:app:
script: script:
- phpunit --configuration phpunit_myapp.xml - phpunit --configuration phpunit_myapp.xml
...
``` ```
Finally, commit your files and push them to GitLab to see your build succeeding Finally, commit your files and push them to GitLab to see your build succeeding
...@@ -103,7 +95,7 @@ The final `.gitlab-ci.yml` should look similar to this: ...@@ -103,7 +95,7 @@ The final `.gitlab-ci.yml` should look similar to this:
image: php:5.6 image: php:5.6
before_script: before_script:
# Install dependencies # Install dependencies
- bash ci/docker_install.sh > /dev/null - bash ci/docker_install.sh > /dev/null
test:app: test:app:
...@@ -118,7 +110,7 @@ with a different Docker image version and the runner will do the rest: ...@@ -118,7 +110,7 @@ with a different Docker image version and the runner will do the rest:
```yaml ```yaml
before_script: before_script:
# Install dependencies # Install dependencies
- bash ci/docker_install.sh > /dev/null - bash ci/docker_install.sh > /dev/null
# We test PHP5.6 # We test PHP5.6
...@@ -231,8 +223,6 @@ In order to execute Composer before running your tests, simply add the ...@@ -231,8 +223,6 @@ In order to execute Composer before running your tests, simply add the
following in your `.gitlab-ci.yml`: following in your `.gitlab-ci.yml`:
```yaml ```yaml
...
# Composer stores all downloaded packages in the vendor/ directory. # Composer stores all downloaded packages in the vendor/ directory.
# Do not use the following if the vendor/ directory is committed to # Do not use the following if the vendor/ directory is committed to
# your git repository. # your git repository.
...@@ -241,15 +231,13 @@ cache: ...@@ -241,15 +231,13 @@ cache:
- vendor/ - vendor/
before_script: before_script:
# Install composer dependencies # Install composer dependencies
- wget https://composer.github.io/installer.sig -O - -q | tr -d '\n' > installer.sig - 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 "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 -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 composer-setup.php
- php -r "unlink('composer-setup.php'); unlink('installer.sig');" - php -r "unlink('composer-setup.php'); unlink('installer.sig');"
- php composer.phar install - php composer.phar install
...
``` ```
## Access private packages or dependencies ## Access private packages or dependencies
......
...@@ -19,27 +19,27 @@ This is what the `.gitlab-ci.yml` file looks like for this project: ...@@ -19,27 +19,27 @@ This is what the `.gitlab-ci.yml` file looks like for this project:
test: test:
stage: test stage: test
script: script:
- apt-get update -qy - apt-get update -qy
- apt-get install -y nodejs - apt-get install -y nodejs
- bundle install --path /cache - bundle install --path /cache
- bundle exec rake db:create RAILS_ENV=test - bundle exec rake db:create RAILS_ENV=test
- bundle exec rake test - bundle exec rake test
staging: staging:
stage: deploy stage: deploy
script: script:
- gem install dpl - gem install dpl
- dpl --provider=heroku --app=gitlab-ci-ruby-test-staging --api-key=$HEROKU_STAGING_API_KEY - dpl --provider=heroku --app=gitlab-ci-ruby-test-staging --api-key=$HEROKU_STAGING_API_KEY
only: only:
- master - master
production: production:
stage: deploy stage: deploy
script: script:
- gem install dpl - gem install dpl
- dpl --provider=heroku --app=gitlab-ci-ruby-test-prod --api-key=$HEROKU_PRODUCTION_API_KEY - dpl --provider=heroku --app=gitlab-ci-ruby-test-prod --api-key=$HEROKU_PRODUCTION_API_KEY
only: only:
- tags - tags
``` ```
This project has three jobs: This project has three jobs:
......
...@@ -120,7 +120,7 @@ stages: ...@@ -120,7 +120,7 @@ stages:
- build - build
- test - test
- deploy - deploy
job 1: job 1:
stage: build stage: build
script: make build dependencies script: make build dependencies
...@@ -128,7 +128,7 @@ job 1: ...@@ -128,7 +128,7 @@ job 1:
job 2: job 2:
stage: build stage: build
script: make build artifacts script: make build artifacts
job3: job3:
stage: test stage: test
script: make test script: make test
......
...@@ -238,7 +238,6 @@ case it will apply to all jobs in the pipeline: ...@@ -238,7 +238,6 @@ case it will apply to all jobs in the pipeline:
```yaml ```yaml
my_job: my_job:
image: alpine image: alpine
...
``` ```
#### `post` #### `post`
...@@ -284,7 +283,6 @@ stages: ...@@ -284,7 +283,6 @@ stages:
my_job: my_job:
stage: build stage: build
...
``` ```
#### `steps` #### `steps`
...@@ -297,7 +295,6 @@ my_job: ...@@ -297,7 +295,6 @@ my_job:
script: script:
- echo "hello! the current time is:" - echo "hello! the current time is:"
- time - time
...
``` ```
### Directives ### Directives
......
...@@ -199,7 +199,7 @@ trigger_a: ...@@ -199,7 +199,7 @@ trigger_a:
include: a/.gitlab-ci.yml include: a/.gitlab-ci.yml
rules: rules:
- changes: - changes:
- a/* - a/*
trigger_b: trigger_b:
stage: triggers stage: triggers
...@@ -207,7 +207,7 @@ trigger_b: ...@@ -207,7 +207,7 @@ trigger_b:
include: b/.gitlab-ci.yml include: b/.gitlab-ci.yml
rules: rules:
- changes: - changes:
- b/* - b/*
``` ```
Example child `a` pipeline configuration, located in `/a/.gitlab-ci.yml`, making Example child `a` pipeline configuration, located in `/a/.gitlab-ci.yml`, making
......
...@@ -130,20 +130,20 @@ deployed from its [project on GitLab.com](https://gitlab.com/gitlab-com/www-gitl ...@@ -130,20 +130,20 @@ deployed from its [project on GitLab.com](https://gitlab.com/gitlab-com/www-gitl
```yaml ```yaml
# Team data # Team data
- source: 'data/team.yml' # data/team.yml - source: 'data/team.yml' # data/team.yml
public: 'team/' # team/ public: 'team/' # team/
# Blogposts # Blogposts
- source: /source\/posts\/([0-9]{4})-([0-9]{2})-([0-9]{2})-(.+?)\..*/ # source/posts/2017-01-30-around-the-world-in-6-releases.html.md.erb - source: /source\/posts\/([0-9]{4})-([0-9]{2})-([0-9]{2})-(.+?)\..*/ # source/posts/2017-01-30-around-the-world-in-6-releases.html.md.erb
public: '\1/\2/\3/\4/' # 2017/01/30/around-the-world-in-6-releases/ public: '\1/\2/\3/\4/' # 2017/01/30/around-the-world-in-6-releases/
# HTML files # HTML files
- source: /source\/(.+?\.html).*/ # source/index.html.haml - source: /source\/(.+?\.html).*/ # source/index.html.haml
public: '\1' # index.html public: '\1' # index.html
# Other files # Other files
- source: /source\/(.*)/ # source/images/blogimages/around-the-world-in-6-releases-cover.png - source: /source\/(.*)/ # source/images/blogimages/around-the-world-in-6-releases-cover.png
public: '\1' # images/blogimages/around-the-world-in-6-releases-cover.png public: '\1' # images/blogimages/around-the-world-in-6-releases-cover.png
``` ```
Mappings are defined as entries in the root YAML array, and are identified by a `-` prefix. Within an entry, there is a hash map with two keys: Mappings are defined as entries in the root YAML array, and are identified by a `-` prefix. Within an entry, there is a hash map with two keys:
......
...@@ -91,8 +91,8 @@ to access it. This is where an SSH key pair comes in handy. ...@@ -91,8 +91,8 @@ to access it. This is where an SSH key pair comes in handy.
## Optionally, if you will be using any Git commands, set the user name and ## Optionally, if you will be using any Git commands, set the user name and
## and email. ## and email.
## ##
#- git config --global user.email "user@example.com" # - git config --global user.email "user@example.com"
#- git config --global user.name "User name" # - git config --global user.name "User name"
``` ```
NOTE: **Note:** NOTE: **Note:**
...@@ -193,8 +193,8 @@ before_script: ...@@ -193,8 +193,8 @@ before_script:
## Replace example.com with your private server's domain name. Repeat that ## Replace example.com with your private server's domain name. Repeat that
## command if you have more than one server to connect to. ## command if you have more than one server to connect to.
## ##
#- ssh-keyscan example.com >> ~/.ssh/known_hosts # - ssh-keyscan example.com >> ~/.ssh/known_hosts
#- chmod 644 ~/.ssh/known_hosts # - chmod 644 ~/.ssh/known_hosts
## ##
## You can optionally disable host key checking. Be aware that by adding that ## You can optionally disable host key checking. Be aware that by adding that
...@@ -202,7 +202,7 @@ before_script: ...@@ -202,7 +202,7 @@ before_script:
## WARNING: Use this only with the Docker executor, if you use it with shell ## WARNING: Use this only with the Docker executor, if you use it with shell
## you will overwrite your user's SSH config. ## you will overwrite your user's SSH config.
## ##
#- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" >> ~/.ssh/config' # - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" >> ~/.ssh/config'
``` ```
## Example project ## Example project
......
...@@ -131,10 +131,10 @@ After you set a variable, call it from the `.gitlab-ci.yml` file: ...@@ -131,10 +131,10 @@ After you set a variable, call it from the `.gitlab-ci.yml` file:
test_variable: test_variable:
stage: test stage: test
script: script:
- echo $CI_JOB_STAGE # calls a predefined variable - echo $CI_JOB_STAGE # calls a predefined variable
- echo $TEST # calls a custom variable of type `env_var` - echo $TEST # calls a custom variable of type `env_var`
- echo $GREETING # calls a custom variable of type `file` that contains the path to the temp file - echo $GREETING # calls a custom variable of type `file` that contains the path to the temp file
- cat $GREETING # the temp file itself contains the variable value - cat $GREETING # the temp file itself contains the variable value
``` ```
The output is: The output is:
...@@ -511,7 +511,7 @@ build: ...@@ -511,7 +511,7 @@ build:
deploy: deploy:
stage: deploy stage: deploy
script: script:
- echo $BUILD_VERSION # => hello - echo $BUILD_VERSION # => hello
dependencies: dependencies:
- build - build
``` ```
...@@ -530,7 +530,7 @@ build: ...@@ -530,7 +530,7 @@ build:
deploy: deploy:
stage: deploy stage: deploy
script: script:
- echo $BUILD_VERSION # => hello - echo $BUILD_VERSION # => hello
needs: needs:
- job: build - job: build
artifacts: true artifacts: true
......
...@@ -490,7 +490,7 @@ include: ...@@ -490,7 +490,7 @@ include:
file: '/templates/.gitlab-ci-template.yml' file: '/templates/.gitlab-ci-template.yml'
- project: 'my-group/my-project' - project: 'my-group/my-project'
ref: 787123b47f14b552955ca2786bc9542ae66fee5b # Git SHA ref: 787123b47f14b552955ca2786bc9542ae66fee5b # Git SHA
file: '/templates/.gitlab-ci-template.yml' file: '/templates/.gitlab-ci-template.yml'
``` ```
...@@ -1352,7 +1352,7 @@ job: ...@@ -1352,7 +1352,7 @@ job:
- if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^feature/' - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^feature/'
when: manual when: manual
allow_failure: true allow_failure: true
- if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME' # Checking for the presence of a variable is possible - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME' # Checking for the presence of a variable is possible
``` ```
Some details regarding the logic that determines the `when` for the job: Some details regarding the logic that determines the `when` for the job:
...@@ -1537,11 +1537,11 @@ docker build: ...@@ -1537,11 +1537,11 @@ docker build:
script: docker build -t my-image:$CI_COMMIT_REF_SLUG . script: docker build -t my-image:$CI_COMMIT_REF_SLUG .
rules: rules:
- if: '$VAR == "string value"' - if: '$VAR == "string value"'
changes: # Will include the job and set to when:manual if any of the follow paths match a modified file. changes: # Will include the job and set to when:manual if any of the follow paths match a modified file.
- Dockerfile - Dockerfile
- docker/scripts/* - docker/scripts/*
when: manual when: manual
# - when: never would be redundant here, this is implied any time rules are listed. # - when: never would be redundant here, this is implied any time rules are listed.
``` ```
Keywords such as `branches` or `refs` that are currently available for Keywords such as `branches` or `refs` that are currently available for
...@@ -3080,7 +3080,7 @@ For example, to match a single file: ...@@ -3080,7 +3080,7 @@ For example, to match a single file:
```yaml ```yaml
test: test:
script: [ "echo 'test' > file.txt" ] script: ["echo 'test' > file.txt"]
artifacts: artifacts:
expose_as: 'artifact 1' expose_as: 'artifact 1'
paths: ['file.txt'] paths: ['file.txt']
...@@ -3093,7 +3093,7 @@ An example that will match an entire directory: ...@@ -3093,7 +3093,7 @@ An example that will match an entire directory:
```yaml ```yaml
test: test:
script: [ "mkdir test && echo 'test' > test/file.txt" ] script: ["mkdir test && echo 'test' > test/file.txt"]
artifacts: artifacts:
expose_as: 'artifact 1' expose_as: 'artifact 1'
paths: ['test/'] paths: ['test/']
...@@ -3888,15 +3888,15 @@ ios-release: ...@@ -3888,15 +3888,15 @@ ios-release:
script: script:
- echo 'iOS release job' - echo 'iOS release job'
release: release:
tag_name: v1.0.0-ios tag_name: v1.0.0-ios
description: 'iOS release v1.0.0' description: 'iOS release v1.0.0'
android-release: android-release:
script: script:
- echo 'Android release job' - echo 'Android release job'
release: release:
tag_name: v1.0.0-android tag_name: v1.0.0-android
description: 'Android release v1.0.0' description: 'Android release v1.0.0'
``` ```
#### `release:tag_name` #### `release:tag_name`
...@@ -3968,25 +3968,24 @@ tags. These options cannot be used together, so choose one: ...@@ -3968,25 +3968,24 @@ tags. These options cannot be used together, so choose one:
script: script:
- echo 'running release_job' - echo 'running release_job'
release: release:
name: 'Release $CI_COMMIT_TAG' name: 'Release $CI_COMMIT_TAG'
description: 'Created using the release-cli $EXTRA_DESCRIPTION' # $EXTRA_DESCRIPTION must be defined description: 'Created using the release-cli $EXTRA_DESCRIPTION' # $EXTRA_DESCRIPTION must be defined
tag_name: '$CI_COMMIT_TAG' # elsewhere in the pipeline. tag_name: '$CI_COMMIT_TAG' # elsewhere in the pipeline.
ref: '$CI_COMMIT_TAG' ref: '$CI_COMMIT_TAG'
milestones: milestones:
- 'm1' - 'm1'
- 'm2' - 'm2'
- 'm3' - 'm3'
released_at: '2020-07-15T08:00:00Z' # Optional, will auto generate if not defined, released_at: '2020-07-15T08:00:00Z' # Optional, will auto generate if not defined, or can use a variable.
# or can use a variable.
``` ```
- To create a release automatically when commits are pushed or merged to the default branch, - To create a release automatically when commits are pushed or merged to the default branch,
using a new Git tag that is defined with variables: using a new Git tag that is defined with variables:
NOTE: **Note:** NOTE: **Note:**
Environment variables set in `before_script` or `script` are not available for expanding Environment variables set in `before_script` or `script` are not available for expanding
in the same job. Read more about in the same job. Read more about
[potentially making variables available for expanding](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/6400). [potentially making variables available for expanding](https://gitlab.com/gitlab-org/gitlab-runner/-/issues/6400).
```yaml ```yaml
prepare_job: prepare_job:
...@@ -4006,25 +4005,24 @@ in the same job. Read more about ...@@ -4006,25 +4005,24 @@ in the same job. Read more about
stage: release stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest image: registry.gitlab.com/gitlab-org/release-cli:latest
needs: needs:
- job: prepare_job - job: prepare_job
artifacts: true artifacts: true
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
when: never # Do not run this job when a tag is created manually when: never # Do not run this job when a tag is created manually
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Run this job when commits are pushed or merged to the default branch
script: script:
- echo 'running release_job for $TAG' - echo 'running release_job for $TAG'
release: release:
name: 'Release $TAG' name: 'Release $TAG'
description: 'Created using the release-cli $EXTRA_DESCRIPTION' # $EXTRA_DESCRIPTION and the $TAG description: 'Created using the release-cli $EXTRA_DESCRIPTION' # $EXTRA_DESCRIPTION and the $TAG
tag_name: '$TAG' # variables must be defined elsewhere tag_name: '$TAG' # variables must be defined elsewhere
ref: '$CI_COMMIT_SHA' # in the pipeline. For example, in the ref: '$CI_COMMIT_SHA' # in the pipeline. For example, in the
milestones: # prepare_job milestones: # prepare_job
- 'm1' - 'm1'
- 'm2' - 'm2'
- 'm3' - 'm3'
released_at: '2020-07-15T08:00:00Z' # Optional, will auto generate if not defined, released_at: '2020-07-15T08:00:00Z' # Optional, will auto generate if not defined, or can use a variable.
# or can use a variable.
``` ```
#### `releaser-cli` command line #### `releaser-cli` command line
...@@ -4659,9 +4657,9 @@ If you want to temporarily 'disable' a job, rather than commenting out all the ...@@ -4659,9 +4657,9 @@ If you want to temporarily 'disable' a job, rather than commenting out all the
lines where the job is defined: lines where the job is defined:
```yaml ```yaml
#hidden_job: # hidden_job:
# script: # script:
# - run test # - run test
``` ```
You can instead start its name with a dot (`.`) and it won't be processed by You can instead start its name with a dot (`.`) and it won't be processed by
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment