mirror of
https://github.com/Sea-Haven-Industries/seahaven-ap.git
synced 2026-10-02 17:53:26 +00:00
fix(cd): force DEV_AUTH_BYPASS off for the migrate task
This commit is contained in:
parent
3fd8b545fb
commit
fdd891ce51
2 changed files with 3 additions and 1 deletions
2
.github/workflows/deploy-api.yaml
vendored
2
.github/workflows/deploy-api.yaml
vendored
|
|
@ -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}" \
|
||||
|
|
|
|||
|
|
@ -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__":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue