using dev cache
This commit is contained in:
parent
604be56382
commit
b15c73554d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Reference in a new issue