diff --git a/apps/workflows/Dockerfile b/apps/workflows/Dockerfile index c96daca2d..91634aaf4 100644 --- a/apps/workflows/Dockerfile +++ b/apps/workflows/Dockerfile @@ -41,8 +41,10 @@ RUN \ --mount=type=bind,target=packages/notifications/bird-whatsapp/package.json,source=packages/notifications/bird-whatsapp/package.json \ --mount=type=bind,target=packages/notifications/twillio-sms/package.json,source=packages/notifications/twillio-sms/package.json \ --mount=type=bind,target=packages/notifications/webhook/package.json,source=packages/notifications/webhook/package.json \ + --mount=type=bind,target=packages/importers/package.json,source=packages/importers/package.json \ --mount=type=bind,target=packages/regions/package.json,source=packages/regions/package.json \ --mount=type=bind,target=packages/services/package.json,source=packages/services/package.json \ + --mount=type=bind,target=packages/subscriptions/package.json,source=packages/subscriptions/package.json \ --mount=type=bind,target=packages/utils/package.json,source=packages/utils/package.json \ --mount=type=bind,target=packages/tsconfig/package.json,source=packages/tsconfig/package.json \ --mount=type=bind,target=packages/tinybird/package.json,source=packages/tinybird/package.json \ diff --git a/apps/workflows/dofigen.lock b/apps/workflows/dofigen.lock index 89b4715e5..e21ed65c3 100644 --- a/apps/workflows/dofigen.lock +++ b/apps/workflows/dofigen.lock @@ -12,21 +12,27 @@ effective: | - /packages/error - /packages/tracker builders: - libsql: + build: fromImage: path: oven/bun digest: sha256:0733e50325078969732ebe3b15ce4c4be5082f18c4ac1a0f0ca4839c2e4e42a7 label: - org.opencontainers.image.base.digest: sha256:0733e50325078969732ebe3b15ce4c4be5082f18c4ac1a0f0ca4839c2e4e42a7 org.opencontainers.image.base.name: docker.io/oven/bun:1.3.11 - workdir: /app/ + org.opencontainers.image.base.digest: sha256:0733e50325078969732ebe3b15ce4c4be5082f18c4ac1a0f0ca4839c2e4e42a7 + org.opencontainers.image.stage: build + workdir: /app/apps/workflows + env: + NODE_ENV: production copy: - - fromBuilder: docker + - paths: + - . + target: /app/ + - fromBuilder: install paths: - - /app/apps/build-docker/package.json - target: /app/package.json + - /app/node_modules + target: /app/node_modules run: - - bun install + - bun build --compile --target bun --sourcemap src/index.ts --outfile=app install: fromImage: path: oven/bun @@ -81,10 +87,14 @@ effective: | source: packages/notifications/twillio-sms/package.json - target: packages/notifications/webhook/package.json source: packages/notifications/webhook/package.json + - target: packages/importers/package.json + source: packages/importers/package.json - target: packages/regions/package.json source: packages/regions/package.json - target: packages/services/package.json source: packages/services/package.json + - target: packages/subscriptions/package.json + source: packages/subscriptions/package.json - target: packages/utils/package.json source: packages/utils/package.json - target: packages/tsconfig/package.json @@ -99,53 +109,47 @@ effective: | source: packages/locales/package.json - target: packages/status-fetcher/package.json source: packages/status-fetcher/package.json - build: + docker: fromImage: path: oven/bun digest: sha256:0733e50325078969732ebe3b15ce4c4be5082f18c4ac1a0f0ca4839c2e4e42a7 label: org.opencontainers.image.base.digest: sha256:0733e50325078969732ebe3b15ce4c4be5082f18c4ac1a0f0ca4839c2e4e42a7 org.opencontainers.image.base.name: docker.io/oven/bun:1.3.11 - org.opencontainers.image.stage: build 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 - docker: + - bun run src/build-docker.ts + libsql: fromImage: path: oven/bun digest: sha256:0733e50325078969732ebe3b15ce4c4be5082f18c4ac1a0f0ca4839c2e4e42a7 label: org.opencontainers.image.base.digest: sha256:0733e50325078969732ebe3b15ce4c4be5082f18c4ac1a0f0ca4839c2e4e42a7 org.opencontainers.image.base.name: docker.io/oven/bun:1.3.11 - workdir: /app/apps/workflows + workdir: /app/ copy: - - paths: - - . - target: /app/ + - fromBuilder: docker + paths: + - /app/apps/build-docker/package.json + target: /app/package.json run: - - bun run src/build-docker.ts + - bun install fromImage: path: debian digest: sha256:b32674fb57780ad57d7b0749242d3f585f462f4ec4a60ae0adacd945f9cb9734 label: - org.opencontainers.image.base.digest: sha256:b32674fb57780ad57d7b0749242d3f585f462f4ec4a60ae0adacd945f9cb9734 - org.opencontainers.image.vendor: OpenStatus - org.opencontainers.image.authors: OpenStatus Team - org.opencontainers.image.base.name: docker.io/debian:bullseye-slim io.dofigen.version: 2.6.0 - org.opencontainers.image.title: OpenStatus Workflows 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.authors: OpenStatus Team org.opencontainers.image.description: Background job processing and probe scheduling for OpenStatus + org.opencontainers.image.base.name: docker.io/debian:bullseye-slim + org.opencontainers.image.vendor: OpenStatus workdir: /app/ copy: - fromBuilder: build @@ -170,17 +174,17 @@ effective: | - port: 3000 images: docker.io: - library: - debian: - bullseye-slim: - digest: sha256:b32674fb57780ad57d7b0749242d3f585f462f4ec4a60ae0adacd945f9cb9734 oven: bun: 1.3.11: digest: sha256:0733e50325078969732ebe3b15ce4c4be5082f18c4ac1a0f0ca4839c2e4e42a7 + library: + debian: + bullseye-slim: + digest: sha256:b32674fb57780ad57d7b0749242d3f585f462f4ec4a60ae0adacd945f9cb9734 resources: dofigen.yml: - hash: 407ffaa8213bebee1da67b468e581c100941ac58953329ed9e1820bd50fa94be + hash: a70bae0367478edf21aecadde7e0add58984a9c388b17e54533f0927b46071f7 content: | ignore: - node_modules @@ -221,8 +225,10 @@ resources: - packages/notifications/bird-whatsapp/package.json - packages/notifications/twillio-sms/package.json - packages/notifications/webhook/package.json + - packages/importers/package.json - packages/regions/package.json - packages/services/package.json + - packages/subscriptions/package.json - packages/utils/package.json - packages/tsconfig/package.json - packages/tinybird/package.json diff --git a/apps/workflows/dofigen.yml b/apps/workflows/dofigen.yml index c21313ba5..d3a388ba4 100644 --- a/apps/workflows/dofigen.yml +++ b/apps/workflows/dofigen.yml @@ -37,8 +37,10 @@ builders: - packages/notifications/bird-whatsapp/package.json - packages/notifications/twillio-sms/package.json - packages/notifications/webhook/package.json + - packages/importers/package.json - packages/regions/package.json - packages/services/package.json + - packages/subscriptions/package.json - packages/utils/package.json - packages/tsconfig/package.json - packages/tinybird/package.json