From 081829aab1e1ede53d1b3351f144e9ee1ff619c8 Mon Sep 17 00:00:00 2001 From: thumapas Date: Tue, 29 Sep 2026 10:07:52 +0200 Subject: [PATCH] pipeline add ollama url --- .gitea/workflows/deploy.yml | 3 +++ Dockerfile | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 778de4e..c0e1ade 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -46,3 +46,6 @@ jobs: labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max + + build-args: | + OLLAMA_URL=${{ secrets.OLLAMA_URL }} diff --git a/Dockerfile b/Dockerfile index 70d8d21..025c06a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,13 +9,18 @@ RUN bun install # Copy source code COPY . . + +ARG OLLAMA_URL + +ENV OLLAMA_URL=$OLLAMA_URL + # Build with the Bun Nitro preset RUN NITRO_PRESET=bun bun run build # Stage 2: Production FROM oven/bun:latest WORKDIR /app - +ENV NODE_ENV=production # Copy only the built output from the builder stage COPY --from=builder /app/.output ./.output