diff --git a/.github/workflows/fe_build.yml b/.github/workflows/fe_build.yml index eda59b86c..756da4dbd 100644 --- a/.github/workflows/fe_build.yml +++ b/.github/workflows/fe_build.yml @@ -40,6 +40,10 @@ jobs: TURBO_API: 'http://127.0.0.1:9080' TURBO_TOKEN: 'local' TURBO_TEAM: 'local' + # Vite bundles its env vars into the build, so we need to pass them in + # the prep step. + VITE_DECAP_REPO: ${{ github.repository }} + VITE_DECAP_BRANCH: ${{ github.ref_name }} - name: Publisher uses: AmazeeLabs/publisher-action@4371b4a90a9fe2c86248e76c0f428e39abf6b610 diff --git a/.lagoon/Dockerfile b/.lagoon/Dockerfile index 2a0319b1a..f227cfd3c 100644 --- a/.lagoon/Dockerfile +++ b/.lagoon/Dockerfile @@ -35,7 +35,7 @@ RUN --mount=type=cache,target=/tmp/cache composer install --no-dev WORKDIR /app -# Decap config. +# Decap config. For the case if Publisher mode is "local". ENV VITE_DECAP_REPO='AmazeeLabs/silverback-template' ARG LAGOON_GIT_BRANCH ENV VITE_DECAP_BRANCH="$LAGOON_GIT_BRANCH"