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
44339a64
Commit
44339a64
authored
Aug 09, 2021
by
Suzanne Selhorn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated nav to match standards
Related to:
https://gitlab.com/gitlab-org/technical-writing/-/issues/454
parent
363bb59c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
doc/ci/examples/deployment/index.md
doc/ci/examples/deployment/index.md
+9
-5
No files found.
doc/ci/examples/deployment/index.md
View file @
44339a64
...
...
@@ -115,11 +115,15 @@ We also use two secure variables:
## Storing API keys
To add secure variables, navigate to your project's
**Settings > CI/CD > Variables**
. The variables defined
in the project settings are sent along with the build script to the runner.
To store API keys as secure variables:
1.
On the top bar, select
**Menu > Projects**
and find your project.
1.
On the left sidebar, select
**Settings > CI/CD**
.
1.
Expand
**Variables**
.
The variables defined in the project settings are sent along with the build script to the runner.
The secure variables are stored out of the repository. Never store secrets in
your project's
`.gitlab-ci.yml`
. It is also important that the secret's value
your project's
`.gitlab-ci.yml`
file
. It is also important that the secret's value
is hidden in the job log.
You access added variable by prefixing it's name with
`$`
(on non-Windows runners)
...
...
@@ -128,4 +132,4 @@ or `%` (for Windows Batch runners):
-
`$VARIABLE`
: Use for non-Windows runners
-
`%VARIABLE%`
: Use for Windows Batch runners
Read more about
the
[
CI/CD variables
](
../../variables/index.md
)
.
Read more about
[
CI/CD variables
](
../../variables/index.md
)
.
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