File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -42,17 +42,19 @@ jobs:
42
42
plugin_type="${{ github.event.inputs.plugin_type }}"
43
43
plugin_name="${{ github.event.inputs.plugin_name }}"
44
44
version="${{ github.event.inputs.version }}"
45
- builder_image="higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/wasm-rust-builder:rust${{ env.RUST_VERSION }}-oras${{ env.ORAS_VERSION }}"
46
45
else
47
46
ref_name=${{ github.ref_name }}
48
47
plugin_type=${ref_name#*-} # 删除插件类型前面的字段(wasm-)
49
- plugin_type=${plugin_type%-*} # 删除插件类型后面的字段(-{plugin_name}-vX.Y.Z)
48
+ plugin_type=${plugin_type%% -*} # 删除插件类型后面的字段(-{plugin_name}-vX.Y.Z)
50
49
plugin_name=${ref_name#*-*-} # 删除插件名前面的字段(wasm-go-)
51
50
plugin_name=${plugin_name%-*} # 删除插件名后面的字段(-vX.Y.Z)
52
51
version=$(echo "$ref_name" | awk -F'v' '{print $2}')
52
+ fi
53
+ if [[ "$plugin_type" == "rust" ]]; then
54
+ builder_image="higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/wasm-rust-builder:rust${{ env.RUST_VERSION }}-oras${{ env.ORAS_VERSION }}"
55
+ else
53
56
builder_image="higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/wasm-go-builder:go${{ env.GO_VERSION }}-tinygo${{ env.TINYGO_VERSION }}-oras${{ env.ORAS_VERSION }}"
54
57
fi
55
-
56
58
echo "PLUGIN_TYPE=$plugin_type" >> $GITHUB_ENV
57
59
echo "PLUGIN_NAME=$plugin_name" >> $GITHUB_ENV
58
60
echo "VERSION=$version" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments