This commit is contained in:
@@ -0,0 +1,31 @@
|
|||||||
|
steps:
|
||||||
|
check:
|
||||||
|
image: node:22-bookworm-slim
|
||||||
|
commands:
|
||||||
|
- npm ci
|
||||||
|
- npm run build
|
||||||
|
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-admin-be:0.1.6 .
|
||||||
|
- docker push localhost:5000/studio-admin-be:0.1.6
|
||||||
|
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 -n studio-system rollout restart deployment/studio-admin-be
|
||||||
|
- kubectl --kubeconfig=/tmp/kubeconfig -n studio-system rollout status deployment/studio-admin-be
|
||||||
|
when:
|
||||||
|
branch: release
|
||||||
|
event: push
|
||||||
Reference in New Issue
Block a user