Skip to content

Commit

Permalink
Merge "ci flakiness - add retries when fetching registry image from q…
Browse files Browse the repository at this point in the history
…uay.io"
  • Loading branch information
Microzuul CI authored and Gerrit Code Review committed Nov 29, 2023
2 parents ec399fb + e929c0e commit 6d51379
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 6d51379

Please sign in to comment.