Skip to content

Commit

Permalink
Revert "fix: pass decap env vars to fe_build workflow"
Browse files Browse the repository at this point in the history
This reverts commit cbc46d5.
  • Loading branch information
Leksat committed Dec 13, 2024
1 parent b7b5b06 commit d3e90be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .lagoon/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down Expand Up @@ -114,11 +119,6 @@ RUN npm install -g [email protected]

COPY --from=builder /tmp/.deploy/publisher /app

# Decap config.
ENV VITE_DECAP_REPO='AmazeeLabs/silverback-template'
ARG LAGOON_GIT_BRANCH
ENV VITE_DECAP_BRANCH="$LAGOON_GIT_BRANCH"

CMD pnpm publisher

# ====================================================================================================
Expand Down
1 change: 0 additions & 1 deletion apps/decap/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"extends": ["//"],
"tasks": {
"prep:vite": {
"env": ["VITE_DECAP_REPO", "VITE_DECAP_BRANCH"],
"dependsOn": ["^prep"],
"inputs": ["src/**", "vite.config.ts", "index.html"],
"outputs": ["dist/**"]
Expand Down
2 changes: 0 additions & 2 deletions apps/publisher/publisher.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ function githubEnvVars(): Record<string, string> {
'PUBLISHER_OAUTH2_SESSION_SECRET',
'PUBLISHER_OAUTH2_ENVIRONMENT_TYPE',
'PUBLISHER_OAUTH2_TOKEN_HOST',
'VITE_DECAP_REPO',
'VITE_DECAP_BRANCH',
].map((name) => {
if (name === 'DRUPAL_INTERNAL_URL') {
// No internal URLs when building on Github.
Expand Down

0 comments on commit d3e90be

Please sign in to comment.