Skip to content

Fly Deploy

Fly Deploy #20

Workflow file for this run

name: Fly Deploy
concurrency: deploy
on:
workflow_dispatch:
workflow_run:
workflows:
- CI
branches:
- main
types:
- completed
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs:
deploy:
name: Deploy app
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Coursier cache
uses: coursier/cache-action@v6
- uses: coursier/setup-action@v1
with:
jvm: adopt:8
apps: sbt scala
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
cache-dependency-path: 'ui/yarn.lock'
- name: Build app
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
run: sbt Docker/stage
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only -c $(pwd)/fly.toml target/docker/stage