Keep production services online after restarts
Validate and deploy production / validate (push) Canceled after 0s
Validate and deploy production / deploy (push) Canceled after 0s
Validate and deploy staging / validate (push) Failing after 27s
Validate and deploy staging / deploy (push) Skipped

This commit is contained in:
jb
2026-08-19 02:14:39 -04:00
parent 4777a3abd5
commit 29d26bd036
3 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ name: shd-build-production
services: services:
app: app:
image: ${SHD_IMAGE:-shd-build-production:local} image: ${SHD_IMAGE:-shd-build-production:local}
restart: unless-stopped restart: always
init: true init: true
environment: environment:
INFISICAL_PROJECT_ID: 2ee94b27-e599-4194-9797-3372d42e53f6 INFISICAL_PROJECT_ID: 2ee94b27-e599-4194-9797-3372d42e53f6
@@ -42,7 +42,7 @@ services:
scheduler: scheduler:
image: ${SHD_IMAGE:-shd-build-production:local} image: ${SHD_IMAGE:-shd-build-production:local}
restart: unless-stopped restart: always
init: true init: true
command: command:
- scheduler - scheduler
+5
View File
@@ -142,6 +142,10 @@ describe('container runtime startup', () => {
{ key: 'APP_ORIGIN', value: 'https://exported.invalid' }, { key: 'APP_ORIGIN', value: 'https://exported.invalid' },
{ key: 'DISCORD_CLIENT_ID', value: 'exported-discord-client' }, { key: 'DISCORD_CLIENT_ID', value: 'exported-discord-client' },
{ key: 'DISCORD_CLIENT_SECRET', value: 'exported-discord-secret' }, { key: 'DISCORD_CLIENT_SECRET', value: 'exported-discord-secret' },
{
key: 'MFA_TOTP_ENCRYPTION_KEYS',
value: 'totp-encryption-keyring',
},
]), ]),
writeExport(sharedExport, [ writeExport(sharedExport, [
{ key: 'SCHEDULER_TOKEN', value: schedulerToken }, { key: 'SCHEDULER_TOKEN', value: schedulerToken },
@@ -220,6 +224,7 @@ describe('container runtime startup', () => {
APP_ORIGIN: 'https://stage.shd.build', APP_ORIGIN: 'https://stage.shd.build',
DISCORD_CLIENT_ID: 'exported-discord-client', DISCORD_CLIENT_ID: 'exported-discord-client',
DISCORD_CLIENT_SECRET: 'exported-discord-secret', DISCORD_CLIENT_SECRET: 'exported-discord-secret',
MFA_TOTP_ENCRYPTION_KEYS: 'totp-encryption-keyring',
ORIGIN: 'https://stage.shd.build', ORIGIN: 'https://stage.shd.build',
PASSKEY_RP_ID: 'shd.build', PASSKEY_RP_ID: 'shd.build',
SCHEDULER_TOKEN: schedulerToken, SCHEDULER_TOKEN: schedulerToken,
+1
View File
@@ -14,6 +14,7 @@ const APP_SECRET_NAMES = new Set([
'OPENAI_MECHANIC_MODEL', 'OPENAI_MECHANIC_MODEL',
'OPENAI_MECHANIC_REASONING_EFFORT', 'OPENAI_MECHANIC_REASONING_EFFORT',
'OPENAI_MODERATION_API_KEY', 'OPENAI_MODERATION_API_KEY',
'MFA_TOTP_ENCRYPTION_KEYS',
'ORIGIN', 'ORIGIN',
'PASSKEY_RP_ID', 'PASSKEY_RP_ID',
'REMOVE_BG_API_KEY', 'REMOVE_BG_API_KEY',