Skip to content

Commit

Permalink
ci: refactor GHA to use fly cli
Browse files Browse the repository at this point in the history
  • Loading branch information
khavishbhundoo committed May 18, 2024
1 parent c9aa92b commit 276b204
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:

env:
GH_REPOSITORY: ghcr.io/${{ github.repository }}
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

permissions:
contents: read
Expand Down Expand Up @@ -90,12 +89,14 @@ jobs:
build-args: |
"VERSION=${{ github.ref_name }}"
- name: Install Fly
uses: superfly/flyctl-actions/setup-flyctl@master
with:
version: 1.5
- name: Install Fly CLI
run: |
curl -L https://fly.io/install.sh | sh
echo "/home/runner/.fly/bin" >> $GITHUB_PATH
- name: Deploy app
run: flyctl deploy
run: fly deploy
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}


0 comments on commit 276b204

Please sign in to comment.