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
80f22558
Commit
80f22558
authored
Sep 27, 2019
by
Anton Smith
Committed by
Evan Read
Sep 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs - Add note about env slugs being immutable
parent
512d7b63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
9 deletions
+21
-9
doc/ci/environments.md
doc/ci/environments.md
+21
-9
No files found.
doc/ci/environments.md
View file @
80f22558
...
@@ -131,15 +131,27 @@ In summary, with the above `.gitlab-ci.yml` we have achieved the following:
...
@@ -131,15 +131,27 @@ In summary, with the above `.gitlab-ci.yml` we have achieved the following:
job will deploy our code to a staging server while the deployment
job will deploy our code to a staging server while the deployment
will be recorded in an environment named
`staging`
.
will be recorded in an environment named
`staging`
.
> Starting with GitLab 8.15, the environment name is exposed to the Runner in
#### Environment variables and Runner
> two forms: `$CI_ENVIRONMENT_NAME`, and `$CI_ENVIRONMENT_SLUG`. The first is
> the name given in `.gitlab-ci.yml` (with any variables expanded), while the
Starting with GitLab 8.15, the environment name is exposed to the Runner in
> second is a "cleaned-up" version of the name, suitable for use in URLs, DNS,
two forms:
> etc.
>
-
`$CI_ENVIRONMENT_NAME`
. The name given in
`.gitlab-ci.yml`
(with any variables
> Starting with GitLab 9.3, the environment URL is exposed to the Runner via
expanded).
> `$CI_ENVIRONMENT_URL`. The URL is expanded from `.gitlab-ci.yml`, or if
-
`$CI_ENVIRONMENT_SLUG`
. A "cleaned-up" version of the name, suitable for use in URLs,
> the URL was not defined there, the external URL from the environment is used.
DNS, etc.
If you change the name of an existing environment, the:
-
`$CI_ENVIRONMENT_NAME`
variable will be updated with the new environment name.
-
`$CI_ENVIRONMENT_SLUG`
variable will remain unchanged to prevent unintended side
effects.
Starting with GitLab 9.3, the environment URL is exposed to the Runner via
`$CI_ENVIRONMENT_URL`
. The URL is expanded from either:
-
`.gitlab-ci.yml`
.
-
The external URL from the environment if not defined in
`.gitlab-ci.yml`
.
### Configuring manual deployments
### Configuring manual deployments
...
...
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