Skip to content

Commit

Permalink
Disable fly.io automatic deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
damccull committed Jun 29, 2023
1 parent 9187763 commit 2918113
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/fly.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: Fly Deploy

on:
workflow_run:
workflows:
- CI/CD Prechecks
branches:
- main
types:
- completed
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
# Only deploy the app if the `general` workflow was a success.
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Deploy to fly.io
run: |
cd zero2prod
flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
# name: Fly Deploy
#
# on:
# workflow_run:
# workflows:
# - CI/CD Prechecks
# branches:
# - main
# types:
# - completed
# jobs:
# deploy:
# name: Deploy app
# runs-on: ubuntu-latest
# # Only deploy the app if the `general` workflow was a success.
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
# steps:
# - uses: actions/checkout@v3
# - uses: superfly/flyctl-actions/setup-flyctl@master
# - name: Deploy to fly.io
# run: |
# cd zero2prod
# flyctl deploy --remote-only
# env:
# FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

0 comments on commit 2918113

Please sign in to comment.