mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-07 11:22:34 +02:00
Iterate over tags on release (#6518)
Co-authored-by: Timshel <timshel@480s>
This commit is contained in:
27
.github/workflows/release.yml
vendored
27
.github/workflows/release.yml
vendored
@@ -368,22 +368,25 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set +e
|
set +e
|
||||||
IFS=',' read -ra IMAGES <<< "${CONTAINER_REGISTRIES}"
|
IFS=',' read -ra IMAGES <<< "${CONTAINER_REGISTRIES}"
|
||||||
|
IFS=',' read -ra TAGS <<< "${BASE_TAGS}"
|
||||||
for img in "${IMAGES[@]}"; do
|
for img in "${IMAGES[@]}"; do
|
||||||
echo "Creating manifest for $img:${BASE_TAGS}-${BASE_IMAGE}"
|
for tag in "${TAGS[@]}"; do
|
||||||
|
echo "Creating manifest for $img:$tag-${BASE_IMAGE}"
|
||||||
|
|
||||||
OUTPUT=$(docker buildx imagetools create \
|
OUTPUT=$(docker buildx imagetools create \
|
||||||
-t "$img:${BASE_TAGS}-${BASE_IMAGE}" \
|
-t "$img:$tag-${BASE_IMAGE}" \
|
||||||
$(printf "$img:${BASE_TAGS}-${BASE_IMAGE}@sha256:%s " *) 2>&1)
|
$(printf "$img:$tag-${BASE_IMAGE}@sha256:%s " *) 2>&1)
|
||||||
STATUS=$?
|
STATUS=$?
|
||||||
|
|
||||||
if [ $STATUS -ne 0 ]; then
|
if [ $STATUS -ne 0 ]; then
|
||||||
echo "Manifest creation failed for $img"
|
echo "Manifest creation failed for $img"
|
||||||
|
echo "$OUTPUT"
|
||||||
|
exit $STATUS
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Manifest created for $img"
|
||||||
echo "$OUTPUT"
|
echo "$OUTPUT"
|
||||||
exit $STATUS
|
done
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Manifest created for $img"
|
|
||||||
echo "$OUTPUT"
|
|
||||||
done
|
done
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user