Merge pull request #460 from captableinc/dependabot/npm_and_yarn/hono… #142
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 Staging Deploy | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: 🚀 Deploy | |
environment: staging | |
runs-on: ubuntu-latest | |
concurrency: | |
group: staging | |
cancel-in-progress: true | |
steps: | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
- name: 👀 Read app name | |
uses: SebRollen/[email protected] | |
id: app_name | |
with: | |
file: "fly.toml" | |
field: "app" | |
- 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 --vm-cpu-kind=performance --remote-only --build-arg COMMIT_SHA=${{ github.sha }} | |
--app ${{ steps.app_name.outputs.value }}-staging | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |