forked from baron/baron-sso
fix(deploy): align staging frontend runtime with production images
This commit is contained in:
@@ -64,13 +64,19 @@ for file in "$STAGING_COMPOSE" "$PULL_COMPOSE"; do
|
||||
done
|
||||
|
||||
assert_contains "$STAGING_COMPOSE" 'image: ${ORGFRONT_IMAGE_NAME}:${IMAGE_TAG}'
|
||||
assert_contains "$PULL_COMPOSE" "context: ./orgfront"
|
||||
assert_contains "$DEPLOY_TEMPLATE" "../../orgfront:/app"
|
||||
assert_contains "$DEPLOY_TEMPLATE" "./orgfront/vite.config.ts:/app/vite.config.ts:ro"
|
||||
assert_contains "$DEPLOY_TEMPLATE" "./orgfront/auth.ts:/app/src/lib/auth.ts:ro"
|
||||
assert_contains "$PULL_COMPOSE" "context: ."
|
||||
assert_contains "$PULL_COMPOSE" "dockerfile: ./orgfront/Dockerfile"
|
||||
assert_contains "$PULL_COMPOSE" "VITE_ORGFRONT_PUBLIC_URL: \${ORGFRONT_URL:-}"
|
||||
assert_not_contains "$PULL_COMPOSE" "./orgfront:/app"
|
||||
assert_contains "$DEPLOY_TEMPLATE" "dockerfile: ./orgfront/Dockerfile"
|
||||
assert_contains "$DEPLOY_TEMPLATE" "VITE_ORGFRONT_PUBLIC_URL: \${ORGFRONT_URL}"
|
||||
assert_not_contains "$DEPLOY_TEMPLATE" "../../orgfront:/app"
|
||||
assert_not_contains "$DEPLOY_TEMPLATE" "./orgfront/vite.config.ts:/app/vite.config.ts:ro"
|
||||
assert_not_contains "$DEPLOY_TEMPLATE" "./orgfront/auth.ts:/app/src/lib/auth.ts:ro"
|
||||
|
||||
assert_contains "$BUILD_RC" "Build and push orgfront RC image"
|
||||
assert_contains "$BUILD_RC" "context: ./orgfront"
|
||||
assert_contains "$BUILD_RC" "context: ."
|
||||
assert_contains "$BUILD_RC" "file: ./orgfront/Dockerfile"
|
||||
assert_contains "$BUILD_RC" "/baron_sso/orgfront:"
|
||||
|
||||
assert_contains "$CODE_CHECK" "run_orgfront_tests"
|
||||
|
||||
Reference in New Issue
Block a user