Separate docker jobs

This commit is contained in:
2020-12-28 15:39:05 +01:00
parent 2173a6a36e
commit 8daf43276b

View File

@ -1,6 +1,7 @@
image: docker:19.03.12
stages:
- test
- docker
variables:
@ -39,7 +40,7 @@ before_script:
# Make sure we can build a docker image
# It's pushed to the pipeline-local registry which acts as a cache
build_docker:
stage: docker
stage: test
script:
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_LOCAL_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA --tag $CI_LOCAL_REGISTRY_IMAGE:latest .