1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

ci: upload docker images only in deploy stage

This commit is contained in:
Steffen Vogel 2019-10-26 16:54:27 +02:00
parent 7f97b5f138
commit fa0d224b69

View file

@ -193,7 +193,6 @@ packaging:docker:
--build-arg BUILDER_IMAGE=${DOCKER_IMAGE_DEV}:${DOCKER_TAG}
--file packaging/docker/Dockerfile.app
--tag ${DOCKER_IMAGE}:${DOCKER_TAG} .
- docker push ${DOCKER_IMAGE}:${DOCKER_TAG}
tags:
- shell
- linux
@ -255,11 +254,12 @@ deploy:packages:tags:
# Only on version tags
- "/^v\\d+(\\.\\d+)+$/"
deploy:docker-dev:
deploy:docker:
stage: deploy
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker push ${DOCKER_IMAGE}:${DOCKER_TAG}
- docker push registry.git.rwth-aachen.de/acs/public/villas/node/dev
- docker push registry.git.rwth-aachen.de/acs/public/villas/node/dev-ubuntu
- docker push registry.git.rwth-aachen.de/acs/public/villas/node/dev-centos