From aba83370f6ceb1dc7144193837487dc1076e40e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0mundur=20Bj=C3=B6rn=20Birkisson?= Date: Fri, 29 Nov 2024 13:04:33 +0100 Subject: [PATCH] fix: add fly deployment (#325) --- fly.toml | 22 ++++++++++++++++++++++ release-please-config.json | 8 +++++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 fly.toml diff --git a/fly.toml b/fly.toml new file mode 100644 index 0000000..cc517ce --- /dev/null +++ b/fly.toml @@ -0,0 +1,22 @@ +app = 'spis' +primary_region = 'arn' + +[build] +image = 'ghcr.io/gbbirkisson/spis:v0.9.0' # x-release-please-version + +[env] +PORT = '8080' +SPIS_MEDIA_FETCH_STOCK = '100' + +[http_service] +internal_port = 8080 +force_https = true +auto_stop_machines = false +auto_start_machines = true +min_machines_running = 0 +processes = ['app'] + +[[vm]] +memory = '1gb' +cpu_kind = 'shared' +cpus = 1 diff --git a/release-please-config.json b/release-please-config.json index 56970e6..0d7be72 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -6,7 +6,13 @@ "extra-label": "release", "packages": { ".": { - "release-type": "rust" + "release-type": "rust", + "extra-files": [ + { + "type": "generic", + "path": "fly.toml" + } + ] } } }