-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
25 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
# 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: | ||
push: | ||
#disable this workflow. To enable, remove this and uncomment the others. | ||
branches-ignore: | ||
- '*' | ||
# 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 }} |