From f56750113aa13ed4bde101fa2ee0da844eb92296 Mon Sep 17 00:00:00 2001 From: Bronek Szulc Date: Wed, 27 Nov 2024 16:01:18 -0500 Subject: [PATCH] migrate --- .github/workflows/fly-deploy.yml | 9 ++++++++- Dockerfile | 2 -- 2 files changed, 8 insertions(+), 3 deletions(-) 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 \