fix(helm): validate configurable compose image

pull/381/head
zijiren233 2 months ago
parent eb8968384e
commit daeb66b1b5
No known key found for this signature in database
GPG Key ID: 534E082AAA9B39DC

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