Demo Deploy #121
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: Demo Deploy | |
on: | |
workflow_dispatch: | |
workflow_run: | |
workflows: [Docker Edge Publish] | |
types: [completed] | |
branches: [main] | |
jobs: | |
deploy: | |
name: Deploy app | |
runs-on: ubuntu-latest | |
concurrency: deploy-group # ensure only one action runs at a time | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Wait for Docker Edge image to be updated in registry | |
run: sleep 45s | |
shell: bash | |
- uses: superfly/flyctl-actions/setup-flyctl@master | |
- run: flyctl deploy --remote-only | |
env: | |
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} |