1
0
Fork 0

check image arch without short-circuiting

This commit is contained in:
ssube 2019-11-01 05:30:13 -05:00 committed by Sean Sube
parent 29c5ae831e
commit e7d40be76f
1 changed files with 4 additions and 2 deletions

View File

@ -54,9 +54,11 @@ stages:
- docker build -f Dockerfile.${IMAGE_ARCH} -t ${IMAGE_TAG}-${IMAGE_ARCH} .
- docker push ${IMAGE_TAG}-${IMAGE_ARCH}
- |
[[ "${DEFAULT_ARCH:-false}" = "true" ]] && \
docker tag ${IMAGE_TAG}-${IMAGE_ARCH} ${IMAGE_TAG} && \
if [[ "${DEFAULT_ARCH:-false}" = "true" ]];
then
docker tag ${IMAGE_TAG}-${IMAGE_ARCH} ${IMAGE_TAG}
docker push ${IMAGE_TAG}
fi
after_script:
- rm -rfv ${HOME}/.docker