Skip to content

Commit

Permalink
Merge pull request #294 from stackhpc/retry-package-syncs
Browse files Browse the repository at this point in the history
Add retries to packages syncs
  • Loading branch information
markgoddard authored Feb 28, 2024
2 parents 805e7a2 + 6709e00 commit f4d35a6
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 f4d35a6

Please sign in to comment.