Skip to content

Commit

Permalink
Merge dev into stage
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Dec 12, 2024
2 parents 2fcf86d + daf7ef6 commit 50e8d2b
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/fe_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,16 @@ jobs:
pnpm build:gatsby
fi
# Debug
env | grep VITE_
pwd
ls -lisa .
ls -lisa public
ls -lisa public/admin
ls -lisa public/admin/assets
cat public/admin/assets/*
grep -R 'api_root' public/admin/assets
# Deploy
pnpm netlify env:set AWS_LAMBDA_JS_RUNTIME nodejs18.x
pnpm netlify env:set DRUPAL_EXTERNAL_URL $DRUPAL_EXTERNAL_URL
Expand Down
10 changes: 5 additions & 5 deletions .lagoon/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ 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 @@ -119,6 +114,11 @@ 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: 1 addition & 0 deletions apps/decap/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"extends": ["//"],
"tasks": {
"prep:vite": {
"env": ["VITE_DECAP_REPO", "VITE_DECAP_BRANCH"],
"dependsOn": ["^prep"],
"inputs": ["src/**", "vite.config.ts", "index.html"],
"outputs": ["dist/**"]
Expand Down
7 changes: 6 additions & 1 deletion apps/publisher/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import { base, defineConfig } from '@custom/eslint-config';

export default defineConfig([...base]);
export default defineConfig([
...base,
{
ignores: ['.cache/**'],
},
]);
2 changes: 2 additions & 0 deletions apps/publisher/publisher.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ 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
3 changes: 3 additions & 0 deletions apps/website/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
public
styles.css
persisted-store

# Deno comes with "netlify dev". We don't need its lock file.
/deno.lock
10 changes: 10 additions & 0 deletions apps/website/deno.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// This isn't a Deno project, yet Deno is added by netlify-cli when
// "netlify dev" is used.
// This file is picked up by Deno automatically, so we can use it to adjust Deno
// behavior.
{
// By default, Deno will use node_modules/.deno dir for storing dependencies.
// Somehow it messes up node_modules resolution leading to Gatsby build
// errors. So we prevent Deno from using node_modules dir.
"nodeModulesDir": false,
}

0 comments on commit 50e8d2b

Please sign in to comment.