effective: | ignore: - node_modules - /apps/docs - /apps/screenshot-service - /apps/server - /apps/web - /apps/dashboard - /apps/status-page - /packages/analytics - /packages/api - /packages/error - /packages/tracker builders: install: fromImage: path: oven/bun digest: sha256:f20d9cf365ab35529384f1717687c739c92e6f39157a35a95ef06f4049a10e4a label: org.opencontainers.image.stage: install org.opencontainers.image.base.name: docker.io/oven/bun:1.3.6 org.opencontainers.image.base.digest: sha256:f20d9cf365ab35529384f1717687c739c92e6f39157a35a95ef06f4049a10e4a workdir: /app/ run: - bun install --production --frozen-lockfile --verbose cache: - target: /root/.bun/install/cache bind: - target: bunfig.toml source: bunfig.toml - target: package.json source: package.json - target: apps/workflows/package.json source: apps/workflows/package.json - target: packages/assertions/package.json source: packages/assertions/package.json - target: packages/db/package.json source: packages/db/package.json - target: packages/emails/package.json source: packages/emails/package.json - target: packages/notifications/discord/package.json source: packages/notifications/discord/package.json - target: packages/notifications/email/package.json source: packages/notifications/email/package.json - target: packages/notifications/google-chat/package.json source: packages/notifications/google-chat/package.json - target: packages/notifications/ntfy/package.json source: packages/notifications/ntfy/package.json - target: packages/notifications/opsgenie/package.json source: packages/notifications/opsgenie/package.json - target: packages/notifications/pagerduty/package.json source: packages/notifications/pagerduty/package.json - target: packages/notifications/slack/package.json source: packages/notifications/slack/package.json - target: packages/notifications/telegram/package.json source: packages/notifications/telegram/package.json - target: packages/notifications/twillio-whatsapp/package.json source: packages/notifications/twillio-whatsapp/package.json - target: packages/notifications/twillio-sms/package.json source: packages/notifications/twillio-sms/package.json - target: packages/notifications/webhook/package.json source: packages/notifications/webhook/package.json - target: packages/regions/package.json source: packages/regions/package.json - target: packages/utils/package.json source: packages/utils/package.json - target: packages/tsconfig/package.json source: packages/tsconfig/package.json - target: packages/tinybird/package.json source: packages/tinybird/package.json - target: packages/upstash/package.json source: packages/upstash/package.json - target: packages/theme-store/package.json source: packages/theme-store/package.json ca-certs: fromImage: path: debian digest: sha256:b32674fb57780ad57d7b0749242d3f585f462f4ec4a60ae0adacd945f9cb9734 label: org.opencontainers.image.base.digest: sha256:b32674fb57780ad57d7b0749242d3f585f462f4ec4a60ae0adacd945f9cb9734 org.opencontainers.image.base.name: docker.io/debian:bullseye-slim run: - apt update && apt install -y ca-certificates curl && update-ca-certificates libsql: fromImage: path: oven/bun digest: sha256:f20d9cf365ab35529384f1717687c739c92e6f39157a35a95ef06f4049a10e4a label: org.opencontainers.image.base.digest: sha256:f20d9cf365ab35529384f1717687c739c92e6f39157a35a95ef06f4049a10e4a org.opencontainers.image.base.name: docker.io/oven/bun:1.3.6 workdir: /app/ copy: - fromBuilder: docker paths: - /app/apps/build-docker/package.json target: /app/package.json run: - bun install docker: fromImage: path: oven/bun digest: sha256:f20d9cf365ab35529384f1717687c739c92e6f39157a35a95ef06f4049a10e4a label: org.opencontainers.image.base.digest: sha256:f20d9cf365ab35529384f1717687c739c92e6f39157a35a95ef06f4049a10e4a org.opencontainers.image.base.name: docker.io/oven/bun:1.3.6 workdir: /app/apps/workflows copy: - paths: - . target: /app/ run: - bun run src/build-docker.ts build: fromImage: path: oven/bun digest: sha256:f20d9cf365ab35529384f1717687c739c92e6f39157a35a95ef06f4049a10e4a label: org.opencontainers.image.base.digest: sha256:f20d9cf365ab35529384f1717687c739c92e6f39157a35a95ef06f4049a10e4a org.opencontainers.image.stage: build org.opencontainers.image.base.name: docker.io/oven/bun:1.3.6 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 --target bun --sourcemap src/index.ts --outfile=app fromImage: path: debian digest: sha256:b32674fb57780ad57d7b0749242d3f585f462f4ec4a60ae0adacd945f9cb9734 label: org.opencontainers.image.authors: OpenStatus Team org.opencontainers.image.source: https://github.com/openstatusHQ/openstatus org.opencontainers.image.title: OpenStatus Workflows org.opencontainers.image.base.digest: sha256:b32674fb57780ad57d7b0749242d3f585f462f4ec4a60ae0adacd945f9cb9734 org.opencontainers.image.description: Background job processing and probe scheduling for OpenStatus io.dofigen.version: 2.6.0 org.opencontainers.image.vendor: OpenStatus org.opencontainers.image.base.name: docker.io/debian:bullseye-slim workdir: /app/ copy: - fromBuilder: build paths: - /app/apps/workflows/app target: /app/apps/workflows/ chmod: '555' - fromBuilder: libsql paths: - /app/node_modules target: /app/packages/db/node_modules - fromBuilder: libsql paths: - /app/node_modules target: /app/node_modules - fromBuilder: ca-certs paths: - /etc/ssl/certs/ca-certificates.crt target: /etc/ssl/certs/ - fromBuilder: ca-certs paths: - /usr/bin/curl target: /usr/bin/curl entrypoint: - /app/apps/workflows/app expose: - port: 3000 images: docker.io: library: debian: bullseye-slim: digest: sha256:b32674fb57780ad57d7b0749242d3f585f462f4ec4a60ae0adacd945f9cb9734 oven: bun: 1.3.6: digest: sha256:f20d9cf365ab35529384f1717687c739c92e6f39157a35a95ef06f4049a10e4a resources: dofigen.yml: hash: 070adced2c20f3f63d9a803b4494401f9df769d071fca19c29755f75a0127a06 content: | ignore: - node_modules - /apps/docs - /apps/screenshot-service - /apps/server - /apps/web - /apps/dashboard - /apps/status-page - /packages/analytics - /packages/api - /packages/error - /packages/tracker builders: install: fromImage: oven/bun:1.3.6 workdir: /app/ labels: org.opencontainers.image.stage: install bind: - bunfig.toml - package.json - apps/workflows/package.json - packages/assertions/package.json - packages/db/package.json - packages/emails/package.json - packages/notifications/discord/package.json - packages/notifications/email/package.json - packages/notifications/google-chat/package.json - packages/notifications/ntfy/package.json - packages/notifications/opsgenie/package.json - packages/notifications/pagerduty/package.json - packages/notifications/slack/package.json - packages/notifications/telegram/package.json - packages/notifications/twillio-whatsapp/package.json - packages/notifications/twillio-sms/package.json - packages/notifications/webhook/package.json - packages/regions/package.json - packages/utils/package.json - packages/tsconfig/package.json - packages/tinybird/package.json - packages/upstash/package.json - packages/theme-store/package.json # Install dependencies run: bun install --production --frozen-lockfile --verbose cache: - /root/.bun/install/cache # Stage 4: Build application (compile to binary) build: fromImage: oven/bun:1.3.6 workdir: /app/apps/workflows labels: org.opencontainers.image.stage: build copy: - . /app/ - fromBuilder: install source: /app/node_modules target: /app/node_modules # Should set env to production here # Compile the TypeScript application env: NODE_ENV: production run: bun build --compile --target bun --sourcemap src/index.ts --outfile=app docker: fromImage: oven/bun:1.3.6 workdir: /app/apps/workflows copy: - . /app/ run: bun run src/build-docker.ts libsql: fromImage: oven/bun:1.3.6 workdir: /app/ copy: - fromBuilder: docker source: /app/apps/build-docker/package.json target: /app/package.json run: bun install ca-certs: fromImage: debian:bullseye-slim run: apt update && apt install -y ca-certificates curl && update-ca-certificates fromImage: debian:bullseye-slim workdir: /app/ # Metadata labels labels: org.opencontainers.image.title: OpenStatus Workflows org.opencontainers.image.description: Background job processing and probe scheduling for OpenStatus org.opencontainers.image.source: https://github.com/openstatusHQ/openstatus org.opencontainers.image.vendor: OpenStatus org.opencontainers.image.authors: OpenStatus Team # Copy artifacts from build stages copy: - fromBuilder: build source: /app/apps/workflows/app target: /app/apps/workflows/ chmod: "555" - fromBuilder: libsql source: /app/node_modules target: /app/packages/db/node_modules - fromBuilder: libsql source: /app/node_modules target: /app/node_modules - fromBuilder: ca-certs source: /etc/ssl/certs/ca-certificates.crt target: /etc/ssl/certs/ - fromBuilder: ca-certs source: /usr/bin/curl target: /usr/bin/curl expose: "3000" entrypoint: /app/apps/workflows/app