Separate docker jobs
This commit is contained in:
@ -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 .
|
||||
|
Reference in New Issue
Block a user