ci: fix sandboxNoDbRefresh flag

This commit is contained in:
Nicolas Giard 2024-01-03 21:51:40 -05:00 committed by GitHub
parent b3c0b30838
commit f071c8c365
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: [