Skip to content

Commit

Permalink
workflow: libvirt e2e: cluster clean-up
Browse files Browse the repository at this point in the history
Clean up the cluster after testing, if running on self-hosted
runners, so that if they aren't thrown away each time, they
don't cause issues on subsequent runs.

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
  • Loading branch information
stevenhorsman committed Oct 28, 2024
1 parent a71f6cd commit 705c4f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/e2e_libvirt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,7 @@ jobs:
echo "::endgroup::"
# Avoid running with `set -e` as command fails should be allowed
shell: bash {0}

- name: Clean-up cluster
if: ${{ runner.environment == 'self-hosted' }}
run: ./libvirt/kcli_cluster.sh delete

0 comments on commit 705c4f9

Please sign in to comment.