Skip to content

Commit

Permalink
Allow cleanup(test) to run regardless of deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
rtorrero committed Jun 27, 2024
1 parent 286ee23 commit e2f1f29
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,28 @@ jobs:
install_method='rpm'"
- name: Test readiness
run: curl -k "https://${{ env.TEST_HOST_IP }}/api/readyz"

cleanup:
name: Cleanup after playbook run
runs-on: ubuntu-22.04
needs: [deploy-test-rpm]
if: always()
strategy:
matrix:
include:
- sp_version: 'SP3'
host_ip: TEST_SP3_HOST_IP
- sp_version: 'SP4'
host_ip: TEST_SP4_HOST_IP
- sp_version: 'SP5'
host_ip: TEST_SP5_HOST_IP
env:
TEST_HOST_IP: ${{ secrets[matrix.host_ip] }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run playbook cleanup
uses: dawidd6/action-ansible-playbook@v2
with:
Expand Down

0 comments on commit e2f1f29

Please sign in to comment.