Merge pull request #381 from zijiren233/codex/fix-compose-validation-fallback

fix(helm): validate configurable compose image
codex/apple-review-docs v1.0.1
zijiren 2 months ago committed by GitHub
commit 4b1e677d21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -391,8 +391,10 @@ docs_default_app_version="$(node --input-type=module -e 'const project = await i
fail "chart version ($chart_version) must match Cargo workspace version ($cargo_version)"
[ "$app_version" = "$cargo_version" ] ||
fail "chart appVersion ($app_version) must match Cargo workspace version ($cargo_version)"
[ "$compose_image" = "synctvorg/synctv:latest" ] ||
fail "Compose image ($compose_image) must be synctvorg/synctv:latest"
case "$compose_image" in
'synctvorg/synctv:${SYNCTV_IMAGE_TAG:-latest}') ;;
*) fail "Compose image ($compose_image) must use the SYNCTV_IMAGE_TAG fallback" ;;
esac
[ "$docs_default_app_version" = "$cargo_version" ] ||
fail "docs default app version ($docs_default_app_version) must match Cargo workspace version ($cargo_version)"

Loading…
Cancel
Save