Add 4 automatic retries to docker publish GitHub action (#36176)

Seems like this action frequently fails due to network issues, so might
as well retry a few times automatically
This commit is contained in:
jacobshandling 2025-11-24 10:03:11 -08:00 committed by GitHub
parent 52425ae20e
commit 0f66641d8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -151,8 +151,10 @@ jobs:
- name: Tag and push to quay.io
run: |
for TAG in ${{ steps.docker.outputs.TAG }}; do
docker tag fleetdm/fleet:${TAG} quay.io/fleetdm/fleet:${TAG}
docker push quay.io/fleetdm/fleet:${TAG}
docker tag fleetdm/fleet:${TAG} quay.io/fleetdm/fleet:${TAG}
for i in {1..5}; do
docker push quay.io/fleetdm/fleet:${TAG} && break || sleep 10
done
done
- name: Slack notification