Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

ci(api): force clean api image builds

mogery62ea906d7599
diff --git a/.github/workflows/deploy-image.yml b/.github/workflows/deploy-image.yml
index 027f55e8b..34c61a61c 100644
--- a/.github/workflows/deploy-image.yml
+++ b/.github/workflows/deploy-image.yml
@@ -98,6 +98,7 @@ jobs:
tags: ${{ needs.version.outputs.image }}:sha-${{ needs.version.outputs.short_sha }}-${{ matrix.platform_suffix }}
platforms: ${{ matrix.platform }}
provenance: false
+ no-cache: true
publish:
runs-on: blacksmith-2vcpu-ubuntu-2404
diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile
index 061b1c381..1896312cc 100644
--- a/apps/api/Dockerfile
+++ b/apps/api/Dockerfile
@@ -54,8 +54,8 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
--mount=type=cache,target=/app/native/target \
pnpm install --frozen-lockfile
-# Build the application
-RUN pnpm run build
+# Build the application from a clean output directory.
+RUN rm -rf dist && pnpm run build
# Remove dev dependencies
RUN pnpm prune --prod --ignore-scripts