added envs to sql generation workflow
This commit is contained in:
parent
4253f66ca1
commit
24c33295fb
2 changed files with 4 additions and 1 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -261,6 +261,8 @@ jobs:
|
|||
|
||||
- name: Run SQL generation
|
||||
run: npm run sql:generate
|
||||
env:
|
||||
DB_URL: postgres://postgres:postgres@localhost:5432/immich
|
||||
|
||||
- name: Find file changes
|
||||
uses: tj-actions/verify-changed-files@v13.1
|
||||
|
|
|
@ -10,10 +10,11 @@ const WHEN_DB_URL_SET = Joi.when('DB_URL', {
|
|||
});
|
||||
|
||||
export const immichAppConfig: ConfigModuleOptions = {
|
||||
ignoreEnvFile: process.env.USE_ENV_FILE === 'false',
|
||||
envFilePath: '.env',
|
||||
isGlobal: true,
|
||||
validationSchema: Joi.object({
|
||||
NODE_ENV: Joi.string().required().valid('development', 'production', 'staging').default('development'),
|
||||
NODE_ENV: Joi.string().optional().valid('development', 'production', 'staging').default('development'),
|
||||
DB_USERNAME: WHEN_DB_URL_SET,
|
||||
DB_PASSWORD: WHEN_DB_URL_SET,
|
||||
DB_DATABASE_NAME: WHEN_DB_URL_SET,
|
||||
|
|
Loading…
Reference in a new issue