feat: testing staging and prod deploys #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Fly Production Deploy | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
on: | |
# release: | |
# types: [published] | |
push: | |
branches: | |
- "fly-deploy" | |
jobs: | |
deploy: | |
name: 🚀 Deploy | |
runs-on: ubuntu-latest | |
concurrency: deploy-group # optional: ensure only one action runs at a time | |
steps: | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
# move Dockerfile to root | |
- name: 🚚 Move Dockerfile | |
run: | | |
mv ./docker/Dockerfile ./Dockerfile | |
- name: 🚀 Deploy Production | |
run: flyctl deploy --remote-only --build-arg COMMIT_SHA=${{ github.sha }} | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |