Skip to content

Commit 93a213b

Browse files
authored
CI: Only delete keypairs with azimuth-* prefix (azimuth-cloud#229)
1 parent d185df9 commit 93a213b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/cleanup-ci-resources.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ jobs:
7777
if: ${{ inputs.delete-all-keypairs }}
7878
run: |
7979
for keypair in $(openstack keypair list --format value -c Name); do
80-
openstack keypair delete $keypair
81-
echo "Deleted keypair $keypair"
80+
if [[ "$keypair" =~ ^azimuth- ]]; then
81+
openstack keypair delete $keypair
82+
echo "Deleted keypair $keypair"
83+
fi
8284
done
8385
env:
8486
OS_CLOUD: ${{ matrix.target-cloud }}

0 commit comments

Comments
 (0)