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
23f68d57
Commit
23f68d57
authored
Jul 30, 2021
by
Brie Carranza
Committed by
Achilleas Pipinellis
Jul 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add deployment jobs section to the jobs docs
parent
cd5e6ba4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
doc/ci/jobs/index.md
doc/ci/jobs/index.md
+24
-0
No files found.
doc/ci/jobs/index.md
View file @
23f68d57
...
...
@@ -259,3 +259,27 @@ job1:
-
echo 'this line should be hidden automatically after loading the job log'
-
echo -e "\e[0Ksection_end:`date +%s`:my_first_section\r\e[0K"
```
## Deployment jobs
Deployment jobs are a specific kind of CI job in that they deploy code to
[
environments
](
../environments/index.md
)
. A deployment job is any job that
uses the
`environment`
keyword and the
[
`start` environment `action`
](
../yaml/README.md#environmentaction
)
.
Deployment jobs do not need to be in the
`deploy`
stage. The following
`deploy me`
job is an example of a deployment job.
`action: start`
is the default behavior and
is defined for the sake of the example, but you can omit it:
```
yaml
deploy me
:
script
:
-
deploy-to-cats.sh
environment
:
name
:
production
url
:
https://cats.example.com
action
:
start
```
The behavior of deployment jobs can be controlled with
[
deployment safety
](
../environments/deployment_safety.md
)
settings like
[
skipping outdated deployment jobs
](
../environments/deployment_safety.md#prevent-deployments-during-deploy-freeze-windows
)
and
[
ensuring only one deployment job runs at a time
](
../environments/deployment_safety.md#ensure-only-one-deployment-job-runs-at-a-time
)
.
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