steps: check: image: oven/bun:1.2.23 commands: - bun install --frozen-lockfile - bun run typecheck 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/platform-gateway:0.1.0 . - docker push localhost:5000/platform-gateway:0.1.0 when: branch: release event: push deploy: image: bitnami/kubectl:latest volumes: - /home/future2/Studio_v2/woodpecker/kube/config:/tmp/kubeconfig:ro commands: - kubectl --kubeconfig=/tmp/kubeconfig apply -f k8s/platform-gateway.yaml - kubectl --kubeconfig=/tmp/kubeconfig -n studio-system rollout restart deployment/platform-gateway - kubectl --kubeconfig=/tmp/kubeconfig -n studio-system rollout status deployment/platform-gateway when: branch: release event: push