mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-08 21:31:57 -04:00
fix(turborepo): passthrough HD_* env vars by config option
Some checks failed
Run tests & build / Test and build with NodeJS 20 (push) Has been cancelled
Docker / build-and-push (backend) (push) Has been cancelled
Docker / build-and-push (frontend) (push) Has been cancelled
E2E Tests / backend-sqlite (push) Has been cancelled
E2E Tests / backend-mariadb (push) Has been cancelled
E2E Tests / backend-postgres (push) Has been cancelled
E2E Tests / Build test build of frontend (push) Has been cancelled
Lint and check format / Lint files and check formatting (push) Has been cancelled
REUSE Compliance Check / reuse (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Static Analysis / Njsscan code scanning (push) Has been cancelled
Static Analysis / CodeQL analysis (push) Has been cancelled
E2E Tests / frontend-cypress (1) (push) Has been cancelled
E2E Tests / frontend-cypress (2) (push) Has been cancelled
E2E Tests / frontend-cypress (3) (push) Has been cancelled
Some checks failed
Run tests & build / Test and build with NodeJS 20 (push) Has been cancelled
Docker / build-and-push (backend) (push) Has been cancelled
Docker / build-and-push (frontend) (push) Has been cancelled
E2E Tests / backend-sqlite (push) Has been cancelled
E2E Tests / backend-mariadb (push) Has been cancelled
E2E Tests / backend-postgres (push) Has been cancelled
E2E Tests / Build test build of frontend (push) Has been cancelled
Lint and check format / Lint files and check formatting (push) Has been cancelled
REUSE Compliance Check / reuse (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Static Analysis / Njsscan code scanning (push) Has been cancelled
Static Analysis / CodeQL analysis (push) Has been cancelled
E2E Tests / frontend-cypress (1) (push) Has been cancelled
E2E Tests / frontend-cypress (2) (push) Has been cancelled
E2E Tests / frontend-cypress (3) (push) Has been cancelled
It seems there's a bug in turborepo which results in turbo not passing through arbitrary environment variables despite --env-mode=loose being set. This config option resolves the problem by passing through all HedgeDoc environment variables prefixed by `HD_`. This somewhat also enhances stability and reproducability of builds since other env vars wouldn't interfere anymore. The additional variable CADDY_HOST is required to make overriding the listening port in our Caddyfile work. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
aeafc3abc5
commit
420c711155
2 changed files with 14 additions and 10 deletions
20
package.json
20
package.json
|
@ -12,16 +12,16 @@
|
|||
"markdown-it-plugins"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "dotenv -c production -- turbo --env-mode=loose run build",
|
||||
"build:test": "dotenv -c production -- turbo --env-mode=loose run build:test",
|
||||
"lint": "dotenv -c development -- turbo --env-mode=loose run lint",
|
||||
"lint:fix": "dotenv -c development -- turbo --env-mode=loose run lint:fix",
|
||||
"format": "dotenv -c development -- turbo --env-mode=loose run format",
|
||||
"start:dev": "dotenv -c development -- turbo --env-mode=loose run start:dev",
|
||||
"start": "dotenv -c production -- turbo --env-mode=loose run start",
|
||||
"test:ci": "dotenv -c test -- turbo --env-mode=loose run test:ci --concurrency 1",
|
||||
"test": "dotenv -c test -- turbo --env-mode=loose run test --concurrency 1",
|
||||
"test:e2e:ci": "dotenv -c test -- turbo --env-mode=loose run test:e2e:ci"
|
||||
"build": "dotenv -c production -- turbo run build",
|
||||
"build:test": "dotenv -c production -- turbo run build:test",
|
||||
"lint": "dotenv -c development -- turbo run lint",
|
||||
"lint:fix": "dotenv -c development -- turbo run lint:fix",
|
||||
"format": "dotenv -c development -- turbo run format",
|
||||
"start:dev": "dotenv -c development -- turbo run start:dev",
|
||||
"start": "dotenv -c production -- turbo run start",
|
||||
"test:ci": "dotenv -c test -- turbo run test:ci --concurrency 1",
|
||||
"test": "dotenv -c test -- turbo run test --concurrency 1",
|
||||
"test:e2e:ci": "dotenv -c test -- turbo run test:e2e:ci"
|
||||
},
|
||||
"packageManager": "yarn@4.5.3",
|
||||
"resolutions": {
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
{
|
||||
"$schema": "https://turbo.build/schema.json",
|
||||
"globalPassThroughEnv": [
|
||||
"HD_*",
|
||||
"CADDY_HOST"
|
||||
],
|
||||
"tasks": {
|
||||
"build": {},
|
||||
"@hedgedoc/html-to-react#build": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue