check image arch without short-circuiting
This commit is contained in:
parent
29c5ae831e
commit
e7d40be76f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue