From 80de605b3312e4599cc2235d3c6baa20999077a6 Mon Sep 17 00:00:00 2001 From: andie787 <4andie@gmail.com> Date: Wed, 10 Jan 2024 08:50:09 -0500 Subject: [PATCH] add files --- .github/workflows/fly.yml | 16 ++++++++++++++++ fly.toml | 27 +++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .github/workflows/fly.yml create mode 100644 fly.toml diff --git a/.github/workflows/fly.yml b/.github/workflows/fly.yml new file mode 100644 index 0000000..96e1fb9 --- /dev/null +++ b/.github/workflows/fly.yml @@ -0,0 +1,16 @@ +name: Fly Deploy +on: + push: + branches: + - master # change to main if needed +jobs: + deploy: + name: Deploy app + runs-on: ubuntu-latest + concurrency: deploy-group # optional: ensure only one action runs at a time + steps: + - uses: actions/checkout@v3 + - uses: 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 new file mode 100644 index 0000000..46fd777 --- /dev/null +++ b/fly.toml @@ -0,0 +1,27 @@ +# fly.toml app configuration file generated for aa-go-example on 2024-01-10T08:44:25-05:00 +# +# See https://fly.io/docs/reference/configuration/ for information about how to use this file. +# + +app = "aa-go-example" +primary_region = "ewr" + +[build] + builder = "paketobuildpacks/builder:base" + buildpacks = ["gcr.io/paketo-buildpacks/go"] + +[env] + PORT = "8080" + +[http_service] + internal_port = 8080 + force_https = true + auto_stop_machines = true + auto_start_machines = true + min_machines_running = 0 + processes = ["app"] + +[[vm]] + cpu_kind = "shared" + cpus = 1 + memory_mb = 256