1
0
Fork 0

fix(build): print and quote image tag

This commit is contained in:
ssube 2019-09-17 18:23:38 -05:00
parent 38e0aff159
commit efa5fb7d19
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@
- echo "${DOCKER_SECRET}" | base64 -d > ${HOME}/.docker/config.json - echo "${DOCKER_SECRET}" | base64 -d > ${HOME}/.docker/config.json
- docker info - docker info
script: script:
- echo "Building image: ${IMAGE_TAG}"
- docker build -t $IMAGE_TAG . - docker build -t $IMAGE_TAG .
- docker push $IMAGE_TAG - docker push $IMAGE_TAG
after_script: after_script:
@ -44,7 +45,7 @@
variables: variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
DOCKER_HOST: tcp://localhost:2375 DOCKER_HOST: tcp://localhost:2375
IMAGE_TAG: ${CI_PROJECT_PATH}:${CI_COMMIT_TAG:-${CI_COMMIT_REF_SLUG}} IMAGE_TAG: "${CI_PROJECT_PATH}:${CI_COMMIT_TAG:-${CI_COMMIT_REF_SLUG}}"
.build-node: .build-node:
image: apextoaster/node:10.1 image: apextoaster/node:10.1