refac
Co-Authored-By: G30 <50341825+silentoplayz@users.noreply.github.com>
This commit is contained in:
1 parent
95492cc0b4
commit
62e5eab60b
1 file changed
+12
-2
@@ -311,7 +311,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ !cancelled() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) }}
|
if: ${{ !cancelled() && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) }}
|
||||||
needs: [merge]
|
needs: [merge]
|
||||||
continue-on-error: true
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -403,5 +402,16 @@ jobs:
|
|||||||
[ -z "$TAG" ] && continue
|
[ -z "$TAG" ] && continue
|
||||||
DEST="${DOCKERHUB_IMAGE}:${TAG}"
|
DEST="${DOCKERHUB_IMAGE}:${TAG}"
|
||||||
echo " -> ${DEST}"
|
echo " -> ${DEST}"
|
||||||
docker buildx imagetools create -t "${DEST}" "${SOURCE}"
|
for ATTEMPT in 1 2 3; do
|
||||||
|
if docker buildx imagetools create -t "${DEST}" "${SOURCE}" && \
|
||||||
|
docker buildx imagetools inspect "${DEST}"; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
if [ "${ATTEMPT}" = "3" ]; then
|
||||||
|
echo "Failed to copy ${DEST} after ${ATTEMPT} attempts"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "Copy attempt ${ATTEMPT} for ${DEST} failed, retrying in 15s..."
|
||||||
|
sleep 15
|
||||||
|
done
|
||||||
done <<< "${{ steps.tags.outputs.tags }}"
|
done <<< "${{ steps.tags.outputs.tags }}"
|
||||||
Reference in new issue
Block a user