From 154754cc31e52a9a029d9aeda5fc06a97641dae8 Mon Sep 17 00:00:00 2001 From: Gabriel Simmer Date: Fri, 21 Jul 2023 09:14:17 +0100 Subject: [PATCH] Add CI to Fly.io --- .gitea/workflows/flyctl-deploy.yml | 17 +++++++++++++++++ fly.toml | 3 +-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/flyctl-deploy.yml diff --git a/.gitea/workflows/flyctl-deploy.yml b/.gitea/workflows/flyctl-deploy.yml new file mode 100644 index 0000000..e45942c --- /dev/null +++ b/.gitea/workflows/flyctl-deploy.yml @@ -0,0 +1,17 @@ +name: Fly Deploy +on: + push: + branches: + - trunk +jobs: + deploy: + name: Deploy app + runs-on: debian-latest + steps: + - uses: https://github.com/RouxAntoine/checkout@v3.5.4 + with: + ref: trunk + - uses: https://github.com/superfly/flyctl-actions/setup-flyctl@master + - run: flyctl deploy --remote-only + env: + FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} diff --git a/fly.toml b/fly.toml index 54785f5..f2efe76 100644 --- a/fly.toml +++ b/fly.toml @@ -9,9 +9,8 @@ primary_region = "lhr" [http_service] internal_port = 8080 force_https = true - auto_stop_machines = true + auto_stop_machines = false auto_start_machines = true - min_machines_running = 0 processes = ["app"] [mounts]