ci: Generate new cache key when ci/Dockerfile.builder changes (#4483)

See https://docs.gitlab.com/ee/ci/yaml/index.html#cachekeyfiles
This commit is contained in:
UdjinM6 2021-10-05 02:43:42 +03:00 committed by GitHub
parent cbf81a7dc8
commit 3c4d02a85f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,10 @@ builder-image:
- make $MAKEJOBS -C depends HOST=$HOST $DEP_OPTS - make $MAKEJOBS -C depends HOST=$HOST $DEP_OPTS
cache: cache:
# Let all branches share the same cache, which is ok because the depends subsystem is able to handle this properly (it works with hashes of all scripts) # Let all branches share the same cache, which is ok because the depends subsystem is able to handle this properly (it works with hashes of all scripts)
key: ${CI_JOB_NAME} key:
files:
- $CI_PROJECT_DIR/ci/Dockerfile.builder
prefix: ${CI_JOB_NAME}
paths: paths:
- $CI_PROJECT_DIR/depends/built - $CI_PROJECT_DIR/depends/built
- $CI_PROJECT_DIR/depends/sdk-sources - $CI_PROJECT_DIR/depends/sdk-sources
@ -110,7 +113,10 @@ builder-image:
- ./ci/test_unittests.sh # Run unit tests in build stage to avoid creating too many parallel jobs - ./ci/test_unittests.sh # Run unit tests in build stage to avoid creating too many parallel jobs
cache: cache:
# Let all branches share the same cache, which is ok because ccache is able to handle it # Let all branches share the same cache, which is ok because ccache is able to handle it
key: ${CI_JOB_NAME} key:
files:
- $CI_PROJECT_DIR/ci/Dockerfile.builder
prefix: ${CI_JOB_NAME}
paths: paths:
- $CI_PROJECT_DIR/cache/ccache - $CI_PROJECT_DIR/cache/ccache
artifacts: artifacts: