Skip to content

Commit b0a495f

Browse files
committed
CI: add remove SSH keys step
1 parent 4a5539d commit b0a495f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build_and_test_cosmian_vm.yml

+9
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ jobs:
6262
with:
6363
credentials_json: ${{ secrets.GOOGLE_COSMIAN_DEV_CREDENTIALS }}
6464

65+
- name: Clean SSH keys
66+
if: success() || failure()
67+
run: |-
68+
# https://github.com/kyma-project/test-infra/issues/93#issuecomment-457263589
69+
for i in $(gcloud compute os-login ssh-keys list | grep -v FINGERPRINT); do \
70+
echo "Removing ssh key: $i"; \
71+
gcloud compute os-login ssh-keys remove --key $i || true; \
72+
done
73+
6574
- name: Build GCP images - main
6675
env:
6776
TIMESTAMP: ${{ steps.env.outputs.TIMESTAMP }}

0 commit comments

Comments
 (0)