Skip to content

Commit

Permalink
destroy k8s clouds on failure to deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
hh committed Jun 5, 2017
1 parent 879de7d commit e46c4e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ aws_k8s_deploy:
name: ${CLOUD}-${CI_COMMIT_REF_SLUG}
url: https://$CI_ENVIRONMENT_SLUG.cncf.ci/
on_stop: aws_k8s_destroy
on_failure: packet_k8s_destroy

aws_k8s_e2e:
<<: *k8s_e2e_template
Expand Down Expand Up @@ -274,6 +275,7 @@ packet_k8s_deploy:
name: ${CLOUD}-${CI_COMMIT_REF_SLUG}
url: https://$CI_ENVIRONMENT_SLUG.cncf.ci/
on_stop: packet_k8s_destroy
on_failure: packet_k8s_destroy

packet_k8s_e2e:
<<: *k8s_e2e_template
Expand Down

0 comments on commit e46c4e5

Please sign in to comment.