Skip to content

Commit

Permalink
Add retries to packages syncs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Welsh committed Feb 23, 2024
1 parent 18a87ed commit 6709e00
Showing 1 changed file with 25 additions and 15 deletions.
40 changes: 25 additions & 15 deletions .github/workflows/package-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,18 @@ jobs:
vault-password-file: ${{ env.ANSIBLE_VAULT_PASSWORD_FILE }}

- name: Sync and publish package repositories in Ark
run: |
ansible-playbook -i ansible/inventory \
ansible/dev-pulp-repo-sync.yml \
ansible/dev-pulp-repo-publication-cleanup.yml \
ansible/dev-pulp-repo-publish.yml \
-e deb_package_repo_filter="'$FILTER'" \
-e rpm_package_repo_filter="'$FILTER'"
uses: nick-fields/retry@v3
with:
timeout_minutes: 360
max_attempts: 2
command: |
ansible-playbook -i ansible/inventory \
ansible/dev-pulp-repo-sync.yml \
ansible/dev-pulp-repo-publication-cleanup.yml \
ansible/dev-pulp-repo-publish.yml \
-e deb_package_repo_filter="'$FILTER'" \
-e rpm_package_repo_filter="'$FILTER'"
retry_wait_seconds: 3600
env:
FILTER: ${{ inputs.filter }}

Expand All @@ -78,13 +83,18 @@ jobs:
vault-password-file: ${{ env.ANSIBLE_VAULT_PASSWORD_FILE }}

- name: Sync and publish package repositories in test
run: |
ansible-playbook -i ansible/inventory \
ansible/test-pulp-repo-version-query.yml \
ansible/test-pulp-repo-sync.yml \
ansible/test-pulp-repo-publication-cleanup.yml \
ansible/test-pulp-repo-publish.yml \
-e deb_package_repo_filter="'$FILTER'" \
-e rpm_package_repo_filter="'$FILTER'"
uses: nick-fields/retry@v3
with:
timeout_minutes: 360
max_attempts: 2
command: |
ansible-playbook -i ansible/inventory \
ansible/test-pulp-repo-version-query.yml \
ansible/test-pulp-repo-sync.yml \
ansible/test-pulp-repo-publication-cleanup.yml \
ansible/test-pulp-repo-publish.yml \
-e deb_package_repo_filter="'$FILTER'" \
-e rpm_package_repo_filter="'$FILTER'"
retry_wait_seconds: 3600
env:
FILTER: ${{ inputs.filter }}

0 comments on commit 6709e00

Please sign in to comment.