Skip to content

Reducing the default number of machines in fly #7

Reducing the default number of machines in fly

Reducing the default number of machines in fly #7

Workflow file for this run

name: Fly Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy app
strategy:
matrix:
os: [ubuntu-latest]
java: [temurin@17]
runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup flyctl
uses: superfly/flyctl-actions/setup-flyctl@master
- name: Setup Java (temurin@17)
id: setup-java-temurin-17
if: matrix.java == 'temurin@17'
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
cache: sbt
- name: Publish Local Docker Image
run: sbt server/Docker/publishLocal
- name: Fly deploy
run: flyctl deploy --ha=false --local-only --yes
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}