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
a7e1cdf3
Commit
a7e1cdf3
authored
Nov 24, 2021
by
Marcel Amirault
Committed by
Russell Dickenson
Nov 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change release examples to use double quotes
parent
c60fbf8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
doc/ci/yaml/index.md
doc/ci/yaml/index.md
+7
-7
doc/user/project/releases/index.md
doc/user/project/releases/index.md
+4
-4
No files found.
doc/ci/yaml/index.md
View file @
a7e1cdf3
...
...
@@ -2204,7 +2204,7 @@ its parent pipeline or another child pipeline in the same parent-child pipeline
```
yaml
create-artifact
:
stage
:
build
script
:
echo
'sample artifact'
> artifact.txt
script
:
echo
"sample artifact"
> artifact.txt
artifacts
:
paths
:
[
artifact.txt
]
...
...
@@ -2408,10 +2408,10 @@ job2:
```
yaml
job1
:
script
:
echo
'test'
script
:
echo
"test"
job2
:
script
:
echo
'test'
script
:
echo
"test"
only
:
-
branches
-
tags
...
...
@@ -2668,7 +2668,7 @@ you can use this image from the GitLab Container Registry: `registry.gitlab.com/
rules
:
-
if
:
$CI_COMMIT_TAG
# Run this job when a tag is created manually
script
:
-
echo
'Running the release job.'
-
echo
"Running the release job."
release
:
name
:
'
Release
$CI_COMMIT_TAG'
description
:
'
Release
created
using
the
release-cli.'
...
...
@@ -2686,7 +2686,7 @@ This example creates a release:
```
yaml
script
:
-
echo
'release job'
-
echo
"release job"
```
An
[
issue
](
https://gitlab.com/gitlab-org/gitlab/-/issues/223856
)
exists to remove this requirement.
...
...
@@ -2724,7 +2724,7 @@ To create a release when a new tag is added to the project:
```
yaml
job
:
script
:
echo
'Running the release job for the new tag.'
script
:
echo
"Running the release job for the new tag."
release
:
tag_name
:
$CI_COMMIT_TAG
description
:
'
Release
description'
...
...
@@ -2737,7 +2737,7 @@ should **not** configure the job to run only for new tags. A semantic versioning
```
yaml
job
:
script
:
echo
'Running the release job and creating a new tag.'
script
:
echo
"Running the release job and creating a new tag."
release
:
tag_name
:
${MAJOR}_${MINOR}_${REVISION}
description
:
'
Release
description'
...
...
doc/user/project/releases/index.md
View file @
a7e1cdf3
...
...
@@ -100,7 +100,7 @@ release_job:
rules
:
-
if
:
$CI_COMMIT_TAG
# Run this job when a tag is created manually
script
:
-
echo
'running release_job'
-
echo
"running release_job"
release
:
name
:
'
Release
$CI_COMMIT_TAG'
description
:
'
Created
using
the
release-cli
$EXTRA_DESCRIPTION'
# $EXTRA_DESCRIPTION must be defined
...
...
@@ -149,7 +149,7 @@ release_job:
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
script
:
-
echo
'running release_job for $TAG'
-
echo
"running release_job for $TAG"
release
:
name
:
'
Release
$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:
```
yaml
ios-release
:
script
:
-
echo
'iOS release job'
-
echo
"iOS release job"
release
:
tag_name
:
v1.0.0-ios
description
:
'
iOS
release
v1.0.0'
android-release
:
script
:
-
echo
'Android release job'
-
echo
"Android release job"
release
:
tag_name
:
v1.0.0-android
description
:
'
Android
release
v1.0.0'
...
...
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