Commit 73f999d4 authored by Lars Kumbier's avatar Lars Kumbier

Fixes an invalid documentation for the .gitlab-ci.yml cache:key

parent 498ade48
......@@ -276,7 +276,7 @@ To enable per-branch caching:
```yaml
cache:
key: "$CI_COMMIT_REF_NAME"
key: "$CI_COMMIT_REF_SLUG"
untracked: true
```
......@@ -284,7 +284,7 @@ To enable per-job and per-branch caching:
```yaml
cache:
key: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
untracked: true
```
......@@ -292,7 +292,7 @@ To enable per-branch and per-stage caching:
```yaml
cache:
key: "$CI_JOB_STAGE-$CI_COMMIT_REF_NAME"
key: "$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG"
untracked: true
```
......@@ -301,7 +301,7 @@ If you use **Windows Batch** to run your shell scripts you need to replace
```yaml
cache:
key: "%CI_JOB_STAGE%-%CI_COMMIT_REF_NAME%"
key: "%CI_JOB_STAGE%-%CI_COMMIT_REF_SLUG%"
untracked: true
```
......@@ -310,7 +310,7 @@ If you use **Windows PowerShell** to run your shell scripts you need to replace
```yaml
cache:
key: "$env:CI_JOB_STAGE-$env:CI_COMMIT_REF_NAME"
key: "$env:CI_JOB_STAGE-$env:CI_COMMIT_REF_SLUG"
untracked: true
```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment