Skip to content

Commit

Permalink
fix: set decap env vars in the fe_build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Leksat committed Dec 13, 2024
1 parent 9db7c62 commit 564ea3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/fe_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .lagoon/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 564ea3c

Please sign in to comment.