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 a1b00a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/fly-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only --ha=false

- name: Deploy
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
run: flyctl deploy --remote-only --ha=false

- name: Migrate
run: flyctl ssh console -C "db/migrations.sh"
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 a1b00a3

Please sign in to comment.