From f071c8c365476319989ca875b0b1c8773426eda1 Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Wed, 3 Jan 2024 21:51:40 -0500 Subject: [PATCH] ci: fix sandboxNoDbRefresh flag --- dev/deploy-to-container/cli.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dev/deploy-to-container/cli.js b/dev/deploy-to-container/cli.js index 3eecd6f75..f6b243d4e 100644 --- a/dev/deploy-to-container/cli.js +++ b/dev/deploy-to-container/cli.js @@ -176,7 +176,7 @@ async function main () { name: `dt-db-${branch}`, Hostname: `dt-db-${branch}`, Labels: { - ...argv.nodbrefresh ?? { nodbrefresh: '1' } + ...argv.nodbrefresh === 'true' && { nodbrefresh: '1' } }, HostConfig: { NetworkMode: 'shared', @@ -198,7 +198,7 @@ async function main () { `CELERY_PASSWORD=${mqKey}` ], Labels: { - ...argv.nodbrefresh ?? { nodbrefresh: '1' } + ...argv.nodbrefresh === 'true' && { nodbrefresh: '1' } }, HostConfig: { Memory: 4 * (1024 ** 3), // in bytes @@ -229,7 +229,7 @@ async function main () { 'UPDATE_REQUIREMENTS_FROM=requirements.txt' ], Labels: { - ...argv.nodbrefresh ?? { nodbrefresh: '1' } + ...argv.nodbrefresh === 'true' && { nodbrefresh: '1' } }, HostConfig: { Binds: [ @@ -264,7 +264,7 @@ async function main () { commit: `${argv.commit}` ?? 'unknown', ghrunid: `${argv.ghrunid}` ?? '0', hostname, - ...argv.nodbrefresh ?? { nodbrefresh: '1' } + ...argv.nodbrefresh === 'true' && { nodbrefresh: '1' } }, HostConfig: { Binds: [