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: build: fromImage: path: oven/bun digest: sha256:fbf8e67e9d3b806c86be7a2f2e9bae801f2d9212a21db4dcf8cc9889f5a3c9c4 label: org.opencontainers.image.base.name: docker.io/oven/bun:1.3.3 org.opencontainers.image.stage: build org.opencontainers.image.base.digest: sha256:fbf8e67e9d3b806c86be7a2f2e9bae801f2d9212a21db4dcf8cc9889f5a3c9c4 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 --format=cjs src/index.ts --outfile=app --external '@libsql/*' --external libsql install: fromImage: path: oven/bun digest: sha256:fbf8e67e9d3b806c86be7a2f2e9bae801f2d9212a21db4dcf8cc9889f5a3c9c4 label: org.opencontainers.image.base.name: docker.io/oven/bun:1.3.3 org.opencontainers.image.stage: install org.opencontainers.image.base.digest: sha256:fbf8e67e9d3b806c86be7a2f2e9bae801f2d9212a21db4dcf8cc9889f5a3c9c4 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/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-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 docker: fromImage: path: oven/bun digest: sha256:fbf8e67e9d3b806c86be7a2f2e9bae801f2d9212a21db4dcf8cc9889f5a3c9c4 label: org.opencontainers.image.base.name: docker.io/oven/bun:1.3.3 org.opencontainers.image.base.digest: sha256:fbf8e67e9d3b806c86be7a2f2e9bae801f2d9212a21db4dcf8cc9889f5a3c9c4 workdir: /app/apps/workflows copy: - paths: - . target: /app/ run: - bun run src/build-docker.ts ca-certs: fromImage: path: debian digest: sha256:530a3348fc4b5734ffe1a137ddbcee6850154285251b53c3425c386ea8fac77b label: org.opencontainers.image.base.name: docker.io/debian:bullseye-slim org.opencontainers.image.base.digest: sha256:530a3348fc4b5734ffe1a137ddbcee6850154285251b53c3425c386ea8fac77b run: - apt update && apt install -y ca-certificates && update-ca-certificates libsql: fromImage: path: oven/bun digest: sha256:fbf8e67e9d3b806c86be7a2f2e9bae801f2d9212a21db4dcf8cc9889f5a3c9c4 label: org.opencontainers.image.base.name: docker.io/oven/bun:1.3.3 org.opencontainers.image.base.digest: sha256:fbf8e67e9d3b806c86be7a2f2e9bae801f2d9212a21db4dcf8cc9889f5a3c9c4 workdir: /app/ copy: - fromBuilder: docker paths: - /app/apps/build-docker/package.json target: /app/package.json run: - bun install fromImage: path: debian digest: sha256:530a3348fc4b5734ffe1a137ddbcee6850154285251b53c3425c386ea8fac77b label: org.opencontainers.image.source: https://github.com/openstatusHQ/openstatus org.opencontainers.image.vendor: OpenStatus org.opencontainers.image.title: OpenStatus Workflows org.opencontainers.image.base.name: docker.io/debian:bullseye-slim org.opencontainers.image.base.digest: sha256:530a3348fc4b5734ffe1a137ddbcee6850154285251b53c3425c386ea8fac77b org.opencontainers.image.authors: OpenStatus Team io.dofigen.version: 2.5.1 org.opencontainers.image.description: Background job processing and probe scheduling for OpenStatus 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/ entrypoint: - /app/apps/workflows/app expose: - port: 3000 images: docker.io: oven: bun: 1.3.3: digest: sha256:fbf8e67e9d3b806c86be7a2f2e9bae801f2d9212a21db4dcf8cc9889f5a3c9c4 library: debian: bullseye-slim: digest: sha256:530a3348fc4b5734ffe1a137ddbcee6850154285251b53c3425c386ea8fac77b resources: dofigen.yml: hash: 297382ef47be04c67f610380fadff8e2b9333ab28594ff6e0512b75a23d4c3b0 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.3 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/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-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.3 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 --format=cjs src/index.ts --outfile=app --external '@libsql/*' --external libsql docker: fromImage: oven/bun:1.3.3 workdir: /app/apps/workflows copy: - . /app/ run: bun run src/build-docker.ts libsql: fromImage: oven/bun:1.3.3 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 && 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/ expose: 3000 entrypoint: /app/apps/workflows/app