Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cache.yml « negative_tests « yaml_tests « ci « schema « editor « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3979c9ae2ac786ebeb69fd60dbcd6cfd0f99e83a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
cache-key-files-not-an-array:
  script: echo "This job uses a cache."
  cache:
    key:
      files: package.json
    paths:
      - vendor/ruby
      - node_modules

cache-key-prefix-array:
  script: echo "This job uses a cache."
  cache:
    key:
      files:
        - Gemfile.lock
      prefix:
        - binaries-cache-$CI_JOB_NAME
    paths:
      - binaries/

cache-key-with-.:
  script: echo "This job uses a cache."
  cache:
    key: .
    paths:
      - binaries/

cache-key-with-multiple-.:
  stage: test
  script: echo "This job uses a cache."
  cache:
    key: ..
    paths:
      - binaries/

cache-key-with-/:
  script: echo "This job uses a cache."
  cache:
    key: binaries-ca/che
    paths:
      - binaries/

cache-path-not-an-array:
  script: echo "This job uses a cache."
  cache:
    key: binaries-cache
    paths: binaries/*.apk

cache-untracked-string:
  script: echo "This job uses a cache."
  cache:
    untracked: 'true'

when_integer:
  script: echo "This job uses a cache."
  cache:
    when: 0

when_not_reserved_keyword:
  script: echo "This job uses a cache."
  cache:
    when: 'never'