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: Build:
stage: build stage: build
script: script:
- docker pull $CI_REGISTRY_IMAGE:latest || true - docker pull $CI_REGISTRY_IMAGE:dev || true
- > - >
docker build docker build
--pull --pull
--build-arg VCS_REF=$CI_COMMIT_SHA --build-arg VCS_REF=$CI_COMMIT_SHA
--build-arg VCS_URL=$CI_PROJECT_URL --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 --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
. .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA