Skip to content

Commit

Permalink
Deploy to fly.io
Browse files Browse the repository at this point in the history
  • Loading branch information
akrantz01 committed May 5, 2024
1 parent 26e5b61 commit 18482d9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,23 @@ jobs:

cache-to: type=gha,mode=max
cache-from: type=gha

launch:
name: Launch
runs-on: ubuntu-22.04
if: github.ref == 'refs/heads/main'
needs:
- build
concurrency:
group: deploy-launch
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@v1

- name: Generate commit SHA
id: sha
run: echo "value=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"

- run: flyctl deploy --remote-only --image ${{ env.IMAGE_REGISTRY }}/service:deploy-${{ steps.sha.outputs.value }}
env:
FLY_API_TOKEN: ${{ secrets.FLY_DEPLOY_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target/
/.idea/
config.yaml
.env

0 comments on commit 18482d9

Please sign in to comment.