Commit a37a01ee authored by Russell Dickenson's avatar Russell Dickenson

Merge branch 'docs-improve-release-examples-quotes' into 'master'

Change release examples to use double quotes

See merge request gitlab-org/gitlab!75178
parents cc39c13a a7e1cdf3
...@@ -2209,7 +2209,7 @@ its parent pipeline or another child pipeline in the same parent-child pipeline ...@@ -2209,7 +2209,7 @@ its parent pipeline or another child pipeline in the same parent-child pipeline
```yaml ```yaml
create-artifact: create-artifact:
stage: build stage: build
script: echo 'sample artifact' > artifact.txt script: echo "sample artifact" > artifact.txt
artifacts: artifacts:
paths: [artifact.txt] paths: [artifact.txt]
...@@ -2413,10 +2413,10 @@ job2: ...@@ -2413,10 +2413,10 @@ job2:
```yaml ```yaml
job1: job1:
script: echo 'test' script: echo "test"
job2: job2:
script: echo 'test' script: echo "test"
only: only:
- branches - branches
- tags - tags
...@@ -2673,7 +2673,7 @@ you can use this image from the GitLab Container Registry: `registry.gitlab.com/ ...@@ -2673,7 +2673,7 @@ you can use this image from the GitLab Container Registry: `registry.gitlab.com/
rules: rules:
- if: $CI_COMMIT_TAG # Run this job when a tag is created manually - if: $CI_COMMIT_TAG # Run this job when a tag is created manually
script: script:
- echo 'Running the release job.' - echo "Running the release job."
release: release:
name: 'Release $CI_COMMIT_TAG' name: 'Release $CI_COMMIT_TAG'
description: 'Release created using the release-cli.' description: 'Release created using the release-cli.'
...@@ -2691,7 +2691,7 @@ This example creates a release: ...@@ -2691,7 +2691,7 @@ This example creates a release:
```yaml ```yaml
script: script:
- echo 'release job' - echo "release job"
``` ```
An [issue](https://gitlab.com/gitlab-org/gitlab/-/issues/223856) exists to remove this requirement. An [issue](https://gitlab.com/gitlab-org/gitlab/-/issues/223856) exists to remove this requirement.
...@@ -2729,7 +2729,7 @@ To create a release when a new tag is added to the project: ...@@ -2729,7 +2729,7 @@ To create a release when a new tag is added to the project:
```yaml ```yaml
job: job:
script: echo 'Running the release job for the new tag.' script: echo "Running the release job for the new tag."
release: release:
tag_name: $CI_COMMIT_TAG tag_name: $CI_COMMIT_TAG
description: 'Release description' description: 'Release description'
...@@ -2742,7 +2742,7 @@ should **not** configure the job to run only for new tags. A semantic versioning ...@@ -2742,7 +2742,7 @@ should **not** configure the job to run only for new tags. A semantic versioning
```yaml ```yaml
job: job:
script: echo 'Running the release job and creating a new tag.' script: echo "Running the release job and creating a new tag."
release: release:
tag_name: ${MAJOR}_${MINOR}_${REVISION} tag_name: ${MAJOR}_${MINOR}_${REVISION}
description: 'Release description' description: 'Release description'
......
...@@ -100,7 +100,7 @@ release_job: ...@@ -100,7 +100,7 @@ release_job:
rules: rules:
- if: $CI_COMMIT_TAG # Run this job when a tag is created manually - if: $CI_COMMIT_TAG # Run this job when a tag is created manually
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
...@@ -149,7 +149,7 @@ release_job: ...@@ -149,7 +149,7 @@ release_job:
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
...@@ -224,14 +224,14 @@ A pipeline can have multiple `release` jobs, for example: ...@@ -224,14 +224,14 @@ A pipeline can have multiple `release` jobs, for example:
```yaml ```yaml
ios-release: 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'
......
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