diff options
-rwxr-xr-x | deploy.sh | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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[@]}" |