pipeline add ollama url
Build and Push Docker Image / build-and-push (push) Successful in 32s

This commit is contained in:
thumapas committed 2026-09-29 10:07:52 +02:00
1 parent 8d13dff69b
commit 081829aab1
2 files changed
+9 -1

No files matched your search

+3
View File
@@ -46,3 +46,6 @@ jobs:
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
build-args: |
OLLAMA_URL=${{ secrets.OLLAMA_URL }}
+6 -1
View File
@@ -9,13 +9,18 @@ RUN bun install
# Copy source code # Copy source code
COPY . . COPY . .
ARG OLLAMA_URL
ENV OLLAMA_URL=$OLLAMA_URL
# Build with the Bun Nitro preset # Build with the Bun Nitro preset
RUN NITRO_PRESET=bun bun run build RUN NITRO_PRESET=bun bun run build
# Stage 2: Production # Stage 2: Production
FROM oven/bun:latest FROM oven/bun:latest
WORKDIR /app WORKDIR /app
ENV NODE_ENV=production
# Copy only the built output from the builder stage # Copy only the built output from the builder stage
COPY --from=builder /app/.output ./.output COPY --from=builder /app/.output ./.output