aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantinos Smanis <konstantinos.smanis@gmail.com>2020-12-10 21:38:59 +0200
committerAlexys Jacob <ultrabug@gentoo.org>2021-02-13 18:51:01 +0100
commita54700e4a43337e3d43c8fdb88863efb9c897227 (patch)
treebfa7a67faef36d83f8a363cf17409c4f84296a06
parentMigrate from Travis CI to GitHub Actions (diff)
downloaddocker-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-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[@]}"