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

CI: add tag to docker image

This commit is contained in:
Sonja Happ 2020-03-19 12:33:46 +01:00
parent 888ee61adc
commit 99a5b2d5d2

View file

@ -46,8 +46,8 @@ deploy:docker:
before_script:
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
script:
- docker build -t ${DOCKER_IMAGE} .
- docker push ${DOCKER_IMAGE}
- docker build -t ${DOCKER_IMAGE}:${CI_COMMIT_SHORT_SHA} .
- docker push ${DOCKER_IMAGE}:${CI_COMMIT_SHORT_SHA}
tags:
- shell
- linux