This commit is contained in:
@@ -27,6 +27,10 @@ jobs:
|
||||
set -euo pipefail
|
||||
for attempt in 1 2 3; do
|
||||
if docker buildx build --push --provenance=false --tag "$IMAGE_SHA" --tag "$IMAGE_LATEST" .; then
|
||||
published_images="$(docker image ls --format '{{.Repository}}:{{.Tag}}' | awk -v sha="$IMAGE_SHA" -v latest="$IMAGE_LATEST" '$0 == sha || $0 == latest')"
|
||||
if [ -n "$published_images" ]; then
|
||||
docker image rm -f $published_images
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
sleep "$((attempt * 10))"
|
||||
|
||||
+1
-1
Submodule instructions updated: 1a85fbbea6...9e16b68277
Reference in New Issue
Block a user