Skip to content

Commit

Permalink
fixed delete and cleanup steps
Browse files Browse the repository at this point in the history
Signed-off-by: Noam Gal <[email protected]>
  • Loading branch information
ATGardner committed Sep 12, 2023
1 parent f9530f9 commit b3832ae
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions build/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ steps:
title: "delete bootstrap & cleanup"
image: "codefresh/kube-helm"
commands:
- export GIT_TOKEN=${{GITHUB_TOKEN}}
- export GIT_REPO=https://github.com/${{GIT_REPO}}
- argocd-autopilot repo uninstall --request-timeout 5m
- kubectl delete namespace $NAMESPACE
Expand All @@ -117,6 +118,10 @@ steps:
- curl -H "Authorization:Bearer $GITHUB_TOKEN" -X DELETE "https://api.github.com/repos/${{GIT_REPO}}" || true
when:
steps:
- name: run_bootstrap
on:
- failure
any:
- name: run_bootstrap
on:
- failure
- name: delete_bootstrap
on:
- failure

0 comments on commit b3832ae

Please sign in to comment.