fix(cd): force DEV_AUTH_BYPASS off for the migrate task

This commit is contained in:
Adam Moussa 2026-09-22 13:21:16 -04:00
parent 3fd8b545fb
commit fdd891ce51
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View file

@ -204,7 +204,7 @@ jobs:
--task-definition "${FAMILY}:${REV}" \
--launch-type FARGATE \
--network-configuration "awsvpcConfiguration={subnets=[${SUBNETS}],securityGroups=[${SGS}],assignPublicIp=ENABLED}" \
--overrides "{\"containerOverrides\":[{\"name\":\"${CONTAINER}\",\"command\":[\"node\",\"packages/api/dist/db/migrate.js\"]}]}" \
--overrides "{\"containerOverrides\":[{\"name\":\"${CONTAINER}\",\"command\":[\"node\",\"packages/api/dist/db/migrate.js\"],\"environment\":[{\"name\":\"DEV_AUTH_BYPASS\",\"value\":\"false\"}]}]}" \
--query 'tasks[0].taskArn' --output text)"
aws ecs wait tasks-stopped --cluster "${CLUSTER}" --tasks "${TASK_ARN}"
EXIT="$(aws ecs describe-tasks --cluster "${CLUSTER}" --tasks "${TASK_ARN}" \

View file

@ -61,6 +61,8 @@ def test_deploy_workflows_are_dev_only():
assert "GIT_SHA" in api
assert "verify-api-health.sh" in api
assert "packages/api/dist/db/migrate.js" in api
assert "DEV_AUTH_BYPASS" in api
assert '\\"value\\":\\"false\\"' in api
if __name__ == "__main__":