From 0f66641d8e5c1fa5c28d006d89f9f4d58e64840f Mon Sep 17 00:00:00 2001 From: jacobshandling <61553566+jacobshandling@users.noreply.github.com> Date: Mon, 24 Nov 2025 10:03:11 -0800 Subject: [PATCH] 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 --- .github/workflows/goreleaser-snapshot-fleet.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/goreleaser-snapshot-fleet.yaml b/.github/workflows/goreleaser-snapshot-fleet.yaml index f24693ae5d..6da15e398a 100644 --- a/.github/workflows/goreleaser-snapshot-fleet.yaml +++ b/.github/workflows/goreleaser-snapshot-fleet.yaml @@ -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