aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdeploy.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/deploy.sh b/deploy.sh
index 72f90e6..f900278 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -40,7 +40,10 @@ IFS=';' read -ra ARCHES <<< "${MANIFEST_ARCHES[${MANIFEST}]}"
TAGS=()
for ARCH in "${ARCHES[@]}"; do
- TAGS+=("${ORG}/${NAME}:${ARCH}${SUFFIX:+-${SUFFIX}}")
+ TAG="${ORG}/${NAME}:${ARCH}${SUFFIX:+-${SUFFIX}}"
+ if docker manifest inspect "${TAG}" 1>/dev/null 2>&1; then
+ TAGS+=("${TAG}")
+ fi
done
docker manifest create "${ORG}/${MANIFEST}" "${TAGS[@]}"
@@ -51,7 +54,10 @@ MANIFEST="${NAME}:${SUFFIX:+${SUFFIX}-}${VERSION}"
TAGS=()
for ARCH in "${ARCHES[@]}"; do
- TAGS+=("${ORG}/${NAME}:${ARCH}${SUFFIX:+-${SUFFIX}}-${VERSION}")
+ TAG="${ORG}/${NAME}:${ARCH}${SUFFIX:+-${SUFFIX}}-${VERSION}"
+ if docker manifest inspect "${TAG}" 1>/dev/null 2>&1; then
+ TAGS+=("${TAG}")
+ fi
done
docker manifest create "${ORG}/${MANIFEST}" "${TAGS[@]}"