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: ca-certs: fromImage: path: debian digest: sha256:52927eff8153b563244f98cdc802ba97918afcdf67f9e4867cbf1f7afb3d147b label: org.opencontainers.image.base.name: docker.io/debian:bullseye-slim org.opencontainers.image.base.digest: sha256:52927eff8153b563244f98cdc802ba97918afcdf67f9e4867cbf1f7afb3d147b run: - apt update && apt install -y ca-certificates && update-ca-certificates libsql: fromImage: path: oven/bun digest: sha256:00cccad6e9c66bbacc250851f689168606aaea551ac473e908bbcf00a5645025 label: org.opencontainers.image.base.digest: sha256:00cccad6e9c66bbacc250851f689168606aaea551ac473e908bbcf00a5645025 org.opencontainers.image.base.name: docker.io/oven/bun:1.3.0 workdir: /app/ copy: - fromBuilder: docker paths: - /app/apps/build-docker/package.json target: /app/package.json run: - bun install install: fromImage: path: oven/bun digest: sha256:00cccad6e9c66bbacc250851f689168606aaea551ac473e908bbcf00a5645025 label: org.opencontainers.image.base.digest: sha256:00cccad6e9c66bbacc250851f689168606aaea551ac473e908bbcf00a5645025 org.opencontainers.image.base.name: docker.io/oven/bun:1.3.0 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/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:9c5d3c92b234b4708198577d2f39aab7397a242a40da7c2f059e51b9dc62b408 label: org.opencontainers.image.base.name: docker.io/oven/bun:1.3.1 org.opencontainers.image.base.digest: sha256:9c5d3c92b234b4708198577d2f39aab7397a242a40da7c2f059e51b9dc62b408 workdir: /app/apps/workflows copy: - paths: - . target: /app/ run: - bun run src/build-docker.ts build: fromImage: path: oven/bun digest: sha256:00cccad6e9c66bbacc250851f689168606aaea551ac473e908bbcf00a5645025 label: org.opencontainers.image.base.name: docker.io/oven/bun:1.3.0 org.opencontainers.image.base.digest: sha256:00cccad6e9c66bbacc250851f689168606aaea551ac473e908bbcf00a5645025 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 fromImage: path: debian digest: sha256:52927eff8153b563244f98cdc802ba97918afcdf67f9e4867cbf1f7afb3d147b label: io.dofigen.version: 2.5.0 org.opencontainers.image.base.digest: sha256:52927eff8153b563244f98cdc802ba97918afcdf67f9e4867cbf1f7afb3d147b 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/ entrypoint: - /app/apps/workflows/app expose: - port: 3000 images: docker.io: oven: bun: 1.3.0: digest: sha256:00cccad6e9c66bbacc250851f689168606aaea551ac473e908bbcf00a5645025 1.3.1: digest: sha256:9c5d3c92b234b4708198577d2f39aab7397a242a40da7c2f059e51b9dc62b408 library: debian: bullseye-slim: digest: sha256:52927eff8153b563244f98cdc802ba97918afcdf67f9e4867cbf1f7afb3d147b resources: dofigen.yml: hash: 634f0929d31a7485b4047d8fba15e51f9bb407df75bd92b67f64382748ef8bba 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.0 workdir: /app/ # Copy project 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/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 build: fromImage: oven/bun:1.3.0 workdir: /app/apps/workflows 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.1 workdir: /app/apps/workflows copy: - . /app/ run: bun run src/build-docker.ts libsql: fromImage: oven/bun:1.3.0 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/ 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