Skip to content
Snippets Groups Projects
Commit 64bc3a61 authored by Balasankar C's avatar Balasankar C
Browse files

Merge branch 'sh-use-image-in-cache-key' into 'master'

Use CI image name in gems cache key

See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/6801



Merged-by: default avatarBalasankar 'Balu' C <balasankar@gitlab.com>
Approved-by: default avatarJason Plum <jplum@gitlab.com>
Co-authored-by: default avatarStan Hu <stanhu@gmail.com>
parents 00d3ac3e cafd3709
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -90,6 +90,12 @@ variables:
- gems
policy: pull
 
.gems-cache-os-dependent:
cache:
key: "gems-cache-${CI_JOB_IMAGE}${CACHE_KEY_SUFFIX}"
paths:
- gems
before_script:
- echo "PIPELINE_TYPE detected as ${PIPELINE_TYPE}"
# Exit early if building on an OS for which we don't provide the specified
Loading
Loading
Loading
Loading
@@ -98,7 +98,7 @@
- if: '$PIPELINE_TYPE == "TRIGGER_CACHE_UPDATE_PIPELINE"'
 
.spec_template: &spec_template
extends: .gems-cache
extends: .gems-cache-os-dependent
stage: tests
before_script:
# These jobs will not be run on dev, so we set ALTERNATIVE_SOURCES to true
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment