mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
use TAG for docker image generated in CI
This commit is contained in:
parent
70b2ded851
commit
e6b6a0f970
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ build:docker:
|
|||
- shell
|
||||
- linux
|
||||
script:
|
||||
- docker build -t ${DOCKER_IMAGE} .
|
||||
- docker build -t ${DOCKER_IMAGE}:${CI_COMMIT_SHORT_SHA} .
|
||||
|
||||
# Stage: test
|
||||
##############################################################################
|
||||
|
@ -144,7 +144,7 @@ deploy:docker:
|
|||
before_script:
|
||||
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
|
||||
script:
|
||||
- docker push ${DOCKER_IMAGE}
|
||||
- docker push ${DOCKER_IMAGE}:${CI_COMMIT_SHORT_SHA}
|
||||
dependencies:
|
||||
- build:docker
|
||||
only:
|
||||
|
|
Loading…
Add table
Reference in a new issue