[skip ci] update logic step

This commit is contained in:
2025-05-31 11:59:48 +09:00
parent ed9f06a890
commit 93d6080e94

View File

@ -49,23 +49,35 @@ steps:
commands: commands:
- npm i typescript -g - npm i typescript -g
- npm run build:production - npm run build:production
- echo '✅ success compile typescript and ready to deploy' - echo '✅ success compile typescript'
when: when:
branch: branch:
- master - master
depends_on: [setup]
- name: deploy - name: build-image
image: docker image: docker
commands: commands:
- docker builder prune -f - docker builder prune -f
- docker container prune -f - docker container prune -f
- docker-compose build - docker-compose build
- docker-compose up -d --no-deps --build --remove-orphans
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
when: when:
branch: branch:
- master - master
depends_on: [setup, build-src]
- name: deploy
image: docker
commands:
- docker-compose up -d --no-deps --build --remove-orphans
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
branch:
- main
depends_on: [setup, build-src, build-image]
- name: telegram failed notify - name: telegram failed notify
image: appleboy/drone-telegram image: appleboy/drone-telegram
@ -119,3 +131,4 @@ steps:
- success - success
branch: branch:
- master - master
depends_on: [setup, build-src, build-image, deploy]