using dev cache

This commit is contained in:
Mylloon 2021-07-28 01:22:02 +02:00
parent 604be56382
commit b15c73554d

View file

@ -20,13 +20,13 @@ before_script:
Build:
stage: build
script:
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker pull $CI_REGISTRY_IMAGE:dev || true
- >
docker build
--pull
--build-arg VCS_REF=$CI_COMMIT_SHA
--build-arg VCS_URL=$CI_PROJECT_URL
--cache-from $CI_REGISTRY_IMAGE:latest
--cache-from $CI_REGISTRY_IMAGE:dev
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
.
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA