This commit is contained in:
2020-09-26 10:59:35 +02:00
parent 1345bdc961
commit 0de23bea68

View File

@ -31,14 +31,14 @@ build:
script:
.
- if [ "$CI_COMMIT_TAG" = "" ]; then
docker build . ;
docker build .;
else
docker build
--tag $IMAGE_NAME:latest
--tag $IMAGE_NAME:${CI_COMMIT_TAG}
--tag $HUB_IMAGE_NAME:latest
--tag $HUB_IMAGE_NAME:${CI_COMMIT_TAG}
. ;
.;
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN
$CI_REGISTRY;
docker push $IMAGE_NAME:latest;