diff options
author | 2020-12-10 21:38:59 +0200 | |
---|---|---|
committer | 2021-02-13 18:51:01 +0100 | |
commit | a54700e4a43337e3d43c8fdb88863efb9c897227 (patch) | |
tree | bfa7a67faef36d83f8a363cf17409c4f84296a06 | |
parent | Migrate from Travis CI to GitHub Actions (diff) | |
download | docker-images-a54700e4a43337e3d43c8fdb88863efb9c897227.tar.gz docker-images-a54700e4a43337e3d43c8fdb88863efb9c897227.tar.bz2 docker-images-a54700e4a43337e3d43c8fdb88863efb9c897227.zip |
Ignore missing manifests when creating manifest lists
Signed-off-by: Konstantinos Smanis <konstantinos.smanis@gmail.com>
Closes: https://github.com/gentoo/gentoo-docker-images/pull/102
Signed-off-by: Alexys Jacob <ultrabug@gentoo.org>
-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[@]}" |