Create docker directory before copying file. Add needs to jobs
This commit is contained in:
parent
aee3e59388
commit
3f270e0f88
@ -25,11 +25,15 @@ build-job:
|
||||
publish-job:
|
||||
stage: publish
|
||||
image: docker:stable
|
||||
needs:
|
||||
- auth-job
|
||||
- build-job
|
||||
dependencies:
|
||||
- auth-job
|
||||
tags:
|
||||
- docker
|
||||
script:
|
||||
- mkdir "/root/.docker/"
|
||||
- cp "./build/.dockerconfigjson" "/root/.docker/config.json"
|
||||
- docker -H unix:///var/run/docker.sock image push "$REGISTRY_BASE_URL/$DOCKER_IMAGE_NAME:$CI_COMMIT_SHORT_SHA"
|
||||
|
||||
@ -37,6 +41,9 @@ deploy-job:
|
||||
stage: deploy
|
||||
when: manual
|
||||
image: google/cloud-sdk
|
||||
needs:
|
||||
- auth-job
|
||||
- publish-job
|
||||
dependencies:
|
||||
- auth-job
|
||||
script:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user