Deploy prod fly.io #4
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: Deploy prod fly.io | |
on: | |
workflow_run: | |
workflows: ["Publish Docker image"] | |
branches: [main] | |
types: | |
- completed | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | |
jobs: | |
deploy: | |
name: Deploy app to prod | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- name: fly (prod deploy) | |
run: | | |
export TAG=sha-${{ github.sha }} | |
yarn fly:prod |