fix build wasm plugin script (#1251)

This commit is contained in:
澄潭
2024-08-26 11:02:54 +08:00
committed by GitHub
parent f7a419770d
commit a64cb172bf

View File

@@ -74,11 +74,11 @@ else
version_file="$EXTENSIONS_DIR$file/VERSION"
if [ -f "$version_file" ]; then
version=$(cat "$version_file")
if ! [[ "$version" =~ -alpha$ ]]; then
if [[ "$version" =~ -alpha$ ]]; then
echo "🚀 Build Go WasmPlugin: $name (version $version)"
PLUGIN_NAME=${name} BUILDER_REGISTRY="docker.io/alihigress/plugins-" make build
else
echo "Plugin version $version ends with '-alpha', skipping compilation for $name."
echo "Plugin version $version not ends with '-alpha', skipping compilation for $name."
fi
else
echo "VERSION file not found for plugin $name, skipping compilation."