steps: check: image: oven/bun:1.2.23 commands: - bun install --frozen-lockfile when: branch: develop event: push build-push: image: docker:27-cli volumes: - /var/run/docker.sock:/var/run/docker.sock commands: - docker build -t localhost:5000/studio-auth-be:0.1.1 . - docker push localhost:5000/studio-auth-be:0.1.1 when: 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 <