Retry CI image push
All checks were successful
Build and deploy Backend / build (push) Successful in 53s
All checks were successful
Build and deploy Backend / build (push) Successful in 53s
This commit is contained in:
@@ -25,7 +25,13 @@ jobs:
|
|||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
docker buildx build --push --provenance=false --tag "$IMAGE_SHA" --tag "$IMAGE_LATEST" .
|
for attempt in 1 2 3; do
|
||||||
|
if docker buildx build --push --provenance=false --tag "$IMAGE_SHA" --tag "$IMAGE_LATEST" .; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
sleep "$((attempt * 10))"
|
||||||
|
done
|
||||||
|
exit 1
|
||||||
|
|
||||||
- name: Skip stale deployment
|
- name: Skip stale deployment
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user