deploy_app && run_migration fixes

This commit is contained in:
2024-12-28 13:25:06 +09:00
parent 83980cc559
commit 45d767c062

View File

@@ -22,6 +22,7 @@ steps:
commands: commands:
- apk add --no-cache bash - apk add --no-cache bash
- chmod +x ./bin/update - chmod +x ./bin/update
- until nc -z web 8000; do echo "Waiting for web to be ready..."; sleep 5; done
- git branch --set-upstream-to=origin/PMSManager_refactor PMSManager_refactor || true - git branch --set-upstream-to=origin/PMSManager_refactor PMSManager_refactor || true
- ./bin/update - ./bin/update
@@ -33,8 +34,11 @@ steps:
volumes: volumes:
- name: docker_sock - name: docker_sock
path: /var/run/docker.sock path: /var/run/docker.sock
depends_on:
- web
commands: commands:
- apk add --no-cache bash - apk add --no-cache bash
- until nc -z web 8000; do echo "Waiting for web to be ready..."; sleep 5; done
- chmod +x ./bin/cli - chmod +x ./bin/cli
- ./bin/cli migrate - ./bin/cli migrate