Skip to content

Commit

Permalink
migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
broneks committed Nov 27, 2024
1 parent 636a793 commit f567501
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/fly-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ RUN if [ "$ENV" = "local" ]; then \

EXPOSE 8001

ENTRYPOINT ["db/migrations.sh"]

CMD if [ "$ENV" = "local" ]; then \
air; \
else \
Expand Down

0 comments on commit f567501

Please sign in to comment.