Skip to content

Commit c0dcbfc

Browse files
committed
Sleep 10s between registry login retries
Quay's registry occasionally returns transient errors during login. The existing retry runs back-to-back, so a brief outage often fails both attempts. Wait 10s before the second attempt to give the registry time to recover.
1 parent 59ab3c7 commit c0dcbfc

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/docker-tag-merge.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ jobs:
5959
docker login ${{ env.REGISTRY }} \
6060
--username ${{ secrets.REGISTRY_USERNAME }} \
6161
--password ${{ secrets.REGISTRY_TOKEN }} || \
62+
(sleep 10 && \
6263
docker login ${{ env.REGISTRY }} \
6364
--username ${{ secrets.REGISTRY_USERNAME }} \
64-
--password ${{ secrets.REGISTRY_TOKEN }}
65+
--password ${{ secrets.REGISTRY_TOKEN }})
6566
shell: bash
6667
id: login
6768

.github/workflows/docker-tag-push.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ jobs:
6060
docker login ${{ env.REGISTRY }} \
6161
--username ${{ secrets.REGISTRY_USERNAME }} \
6262
--password ${{ secrets.REGISTRY_TOKEN }} || \
63+
(sleep 10 && \
6364
docker login ${{ env.REGISTRY }} \
6465
--username ${{ secrets.REGISTRY_USERNAME }} \
65-
--password ${{ secrets.REGISTRY_TOKEN }}
66+
--password ${{ secrets.REGISTRY_TOKEN }})
6667
shell: bash
6768
id: login
6869

0 commit comments

Comments
 (0)