diff --git a/.github/workflows/fly-deploy.yml b/.github/workflows/fly-deploy.yml index 658123b..fd6b9a5 100644 --- a/.github/workflows/fly-deploy.yml +++ b/.github/workflows/fly-deploy.yml @@ -9,10 +9,17 @@ jobs: deploy: name: Deploy runs-on: ubuntu-latest - concurrency: deploy-group steps: - uses: actions/checkout@v4 - uses: superfly/flyctl-actions/setup-flyctl@master - run: flyctl deploy --remote-only --ha=false env: FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} + + migrate: + name: Migrate + runs-on: ubuntu-latest + steps: + - run: flyctl ssh console -C "db/migrations.sh" + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} diff --git a/Dockerfile b/Dockerfile index 81fae08..9b28c22 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,8 +29,6 @@ RUN if [ "$ENV" = "local" ]; then \ EXPOSE 8001 -ENTRYPOINT ["db/migrations.sh"] - CMD if [ "$ENV" = "local" ]; then \ air; \ else \