update step
This commit is contained in:
@ -8,17 +8,7 @@ steps:
|
|||||||
- echo '✅ success setup project'
|
- echo '✅ success setup project'
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- master
|
||||||
|
|
||||||
- name: build-swagger
|
|
||||||
image: node:22-alpine
|
|
||||||
environment:
|
|
||||||
NODE_ENV: prod
|
|
||||||
commands:
|
|
||||||
- npm run swagger
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
|
|
||||||
- name: build-src
|
- name: build-src
|
||||||
image: node:22-alpine
|
image: node:22-alpine
|
||||||
@ -30,7 +20,7 @@ steps:
|
|||||||
- echo '✅ success compile typescript and ready to deploy'
|
- echo '✅ success compile typescript and ready to deploy'
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- master
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: docker
|
image: docker
|
||||||
@ -43,4 +33,4 @@ steps:
|
|||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- master
|
||||||
|
|||||||
Reference in New Issue
Block a user