Commit 403f4283 authored by Russell Dickenson's avatar Russell Dickenson

Merge branch 'vshushlin-master-patch-71808' into 'master'

Fix release example in docs

See merge request gitlab-org/gitlab!84880
parents bfc52d56 75b74071
...@@ -2696,18 +2696,19 @@ you can use this image from the GitLab Container Registry: `registry.gitlab.com/ ...@@ -2696,18 +2696,19 @@ you can use this image from the GitLab Container Registry: `registry.gitlab.com/
**Example of `release` keyword**: **Example of `release` keyword**:
```yaml ```yaml
release_job: release_job:
stage: release stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest image: registry.gitlab.com/gitlab-org/release-cli:latest
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' tag_name: $CI_COMMIT_TAG
description: 'Release created using the release-cli.' name: 'Release $CI_COMMIT_TAG'
``` description: 'Release created using the release-cli.'
```
This example creates a release: This example creates a release:
......
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