diff --git a/.woodpecker.yml b/.woodpecker.yml index 062f337..70eddb8 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -18,6 +18,45 @@ steps: branch: release event: push + migrate: + image: bitnami/kubectl:latest + volumes: + - /home/future2/Studio_v2/woodpecker/kube/config:/tmp/kubeconfig:ro + commands: + - | + set -eu + commit="$(printf %.8s "$CI_COMMIT_SHA")" + job="studio-auth-migrate-$commit" + kubectl --kubeconfig=/tmp/kubeconfig -n studio-system delete job "$job" --ignore-not-found + cat <