From b4ae282598f7da910b284837461907e87cb16680 Mon Sep 17 00:00:00 2001 From: Alex Tkachev Date: Wed, 4 Sep 2024 14:30:11 +0400 Subject: [PATCH] chore: move decap env vars to builder --- .lagoon/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.lagoon/Dockerfile b/.lagoon/Dockerfile index 931edfe80..e2a5b46d9 100644 --- a/.lagoon/Dockerfile +++ b/.lagoon/Dockerfile @@ -35,6 +35,11 @@ RUN --mount=type=cache,target=/tmp/cache composer install --no-dev WORKDIR /app +# Decap config. +ENV VITE_DECAP_REPO='AmazeeLabs/silverback-template' +ARG LAGOON_GIT_BRANCH +ENV VITE_DECAP_BRANCH="$LAGOON_GIT_BRANCH" + # Copy the all package sources, install and prepare them. COPY . /app RUN --mount=type=cache,target=/tmp/cache pnpm i && \ @@ -143,9 +148,4 @@ COPY --from=builder /tmp/.deploy/website /app RUN mkdir -p /home/.cache/deno/gen && chmod -R 777 /home/.cache/deno -# Decap config. -ENV VITE_DECAP_REPO='AmazeeLabs/silverback-template' -ARG LAGOON_GIT_BRANCH -ENV VITE_DECAP_BRANCH="$LAGOON_GIT_BRANCH" - CMD pnpm publisher