Skip to content

Commit

Permalink
ci flakiness - add retries when fetching registry image from quay.io
Browse files Browse the repository at this point in the history
This change should mitigate:

```
Trying to pull quay.io/software-factory/registry:2...
Error: parsing image configuration: fetching blob: received unexpected HTTP status: 502 Bad Gateway
```

Change-Id: Ia5d54234c176f54d4c3c7fe6df60b591729ca69e
  • Loading branch information
morucci committed Nov 29, 2023
1 parent f903fac commit e929c0e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions roles/setup-local-registry/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
command: podman volume rm registry

# quay.io/software-factory/registry:2 is a copy of https://hub.docker.com/_/registry
- name: Fetch the podman registry container image
command: podman pull quay.io/software-factory/registry:2
register: podman_fetch
retries: 12
delay: 10
until:
- podman_fetch.rc == 0

- name: Start the podman registry container
command: |
podman container run -dt -p 5000:5000 --name registry \
Expand Down

0 comments on commit e929c0e

Please sign in to comment.