Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ jobs:
image-name: compute-consumer-ui-plugin
context: .
dockerfile-path: ui/consumer/Dockerfile
secrets: inherit
# The Sentry token goes in as a BuildKit secret only. `secrets: inherit`
# would also pass it to publish-docker's SENTRY_AUTH_TOKEN, which it
# forwards as a build-arg, and build-args persist in the exported cache.
secrets:
build-secrets: |
"SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}"

# Deployed as a Component (config/components/provider-ui-plugin) folded
# into compute-manager's own kustomize bundle/Flux Kustomization — same
Expand Down
8 changes: 7 additions & 1 deletion ui/consumer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ RUN bun install --frozen-lockfile
COPY ui/consumer/ .
COPY --from=console-wasm /out/ /console-wasm/
ENV CONSOLE_WASM_DIR=/console-wasm
RUN bun run build
# The Sentry token is a BuildKit secret (publish-docker's build-secrets), so it
# never lands in a layer, the image history or the exported build cache. When
# absent the file is missing, the variable is empty and the upload is skipped.
# Maps go to Sentry, not the image: serve.ts serves every file in dist/.
RUN --mount=type=secret,id=SENTRY_AUTH_TOKEN,required=false \
SENTRY_AUTH_TOKEN="$(cat /run/secrets/SENTRY_AUTH_TOKEN 2>/dev/null)" bun run build && \
find dist -name '*.map' -delete

FROM oven/bun:1-slim
WORKDIR /app
Expand Down
Loading
Loading