Skip to content

Instantly share code, notes, and snippets.

@rchatley
Created December 18, 2022 13:36
Show Gist options
  • Save rchatley/0b2517874826b51e81a5bf8548d74dec to your computer and use it in GitHub Desktop.
Save rchatley/0b2517874826b51e81a5bf8548d74dec to your computer and use it in GitHub Desktop.
build.yml for Fly deployment
on: [ push ]
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment