diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-11 18:10:57 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-11 18:10:57 +0300 |
commit | 4f54ec92edd344449ee005fd4dd727fa2e3e3ffd (patch) | |
tree | e8e8fe275493e6af3c572c0b93525c77a4623400 /doc/ci/examples | |
parent | 4d68d8b937211e5cdcf58443ddf693f0f1d13794 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/ci/examples')
-rw-r--r-- | doc/ci/examples/deployment/index.md | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/doc/ci/examples/deployment/index.md b/doc/ci/examples/deployment/index.md index 05ba704eb1a..14fb77dc49f 100644 --- a/doc/ci/examples/deployment/index.md +++ b/doc/ci/examples/deployment/index.md @@ -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). |