diff --git a/apps/workflows/dofigen.lock b/apps/workflows/dofigen.lock index aef49f78d7..565d081916 100644 --- a/apps/workflows/dofigen.lock +++ b/apps/workflows/dofigen.lock @@ -14,23 +14,6 @@ effective: | - /packages/tracker - /packages/upstash builders: - build: - fromImage: - path: oven/bun - digest: sha256:e2c0b11e277f0285e089ffb77ad831faeec2833b9c4b04d6d317f054e587ef4e - workdir: /app/apps/workflows - env: - NODE_ENV: production - copy: - - paths: - - . - target: /app/ - - fromBuilder: install - paths: - - /app/node_modules - target: /app/node_modules - run: - - bun build --compile --sourcemap src/index.ts --outfile=app install: fromImage: path: oven/bun @@ -53,6 +36,23 @@ effective: | source: packages/utils/package.json - target: packages/tsconfig/package.json source: packages/tsconfig/package.json + build: + fromImage: + path: oven/bun + digest: sha256:e2c0b11e277f0285e089ffb77ad831faeec2833b9c4b04d6d317f054e587ef4e + workdir: /app/apps/workflows + env: + NODE_ENV: production + copy: + - paths: + - . + target: /app/ + - fromBuilder: install + paths: + - /app/node_modules + target: /app/node_modules + run: + - bun build --compile --sourcemap src/index.ts --outfile=app fromImage: path: debian digest: sha256:610b4c7ad241e66f6e2f9791e3abdf0cc107a69238ab21bf9b4695d51fd6366a @@ -68,14 +68,14 @@ effective: | - port: 3000 images: registry.hub.docker.com:443: - oven: - bun: - latest: - digest: sha256:e2c0b11e277f0285e089ffb77ad831faeec2833b9c4b04d6d317f054e587ef4e library: debian: bullseye-slim: digest: sha256:610b4c7ad241e66f6e2f9791e3abdf0cc107a69238ab21bf9b4695d51fd6366a + oven: + bun: + latest: + digest: sha256:e2c0b11e277f0285e089ffb77ad831faeec2833b9c4b04d6d317f054e587ef4e resources: dofigen.yml: hash: 822431b25b0cf3d5a1b3c1140e6337ce6fc768715b64e889d436178f8277b280 diff --git a/apps/workflows/fly.toml b/apps/workflows/fly.toml new file mode 100644 index 0000000000..d436cba164 --- /dev/null +++ b/apps/workflows/fly.toml @@ -0,0 +1,42 @@ +# fly.toml app configuration file generated for openstatus-workflows on 2024-11-09T11:20:33+01:00 +# +# See https://fly.io/docs/reference/configuration/ for information about how to use this file. +# + +app = 'openstatus-workflows' +primary_region = 'ams' + +[build] + dockerfile = "./Dockerfile" + +[[vm]] + cpu_kind = "shared" + cpus = 1 + memory_mb = 256 + +[http_service] + internal_port = 3000 + force_https = true + auto_stop_machines = "suspend" + auto_start_machines = true + min_machines_running = 1 + processes = ["app"] + +[http_service.concurrency] + type = "requests" + hard_limit = 1000 + soft_limit = 500 + +[deploy] + strategy = "bluegreen" + +[[http_service.checks]] + grace_period = "10s" + interval = "15s" + method = "GET" + timeout = "5s" + path = "/ping" + +[env] + NODE_ENV = "production" + PORT = "3000" \ No newline at end of file