Skip to content

Commit

Permalink
chore: setup fly before deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
dahal committed May 14, 2024
1 parent 471806d commit 3e32765
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ jobs:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4

# move Dockerfile to root
- name: 🚚 Move Dockerfile
- name: 🚚 Move Dockerfile to root
run: |
mv ./docker/Dockerfile ./Dockerfile
- name: 🪰 Setup flyctl
uses: superfly/flyctl-actions/setup-flyctl@master
with:
version: latest

- name: 🚀 Deploy Production
run: flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ jobs:
file: "fly.toml"
field: "app"

# move Dockerfile to root
- name: 🚚 Move Dockerfile
- name: 🚚 Move Dockerfile to root
run: |
mv ./docker/Dockerfile ./Dockerfile
- name: 🪰 Setup flyctl
uses: superfly/flyctl-actions/setup-flyctl@master
with:
version: latest

- name: 🚀 Deploy Staging
run:
flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }}
Expand Down

0 comments on commit 3e32765

Please sign in to comment.