preset dotnet 重命名为 dotnet10
This commit is contained in:
+3
-3
@@ -1,6 +1,6 @@
|
||||
# action.yml
|
||||
name: "magic docker build and push"
|
||||
description: "一键构建并推送 Docker 镜像:支持自定义 context / dockerfile,或使用内置 preset(vue3、vue3-hash、dotnet)"
|
||||
description: "一键构建并推送 Docker 镜像:支持自定义 context / dockerfile,或使用内置 preset(vue3、vue3-hash、dotnet10)"
|
||||
|
||||
inputs:
|
||||
registry:
|
||||
@@ -36,7 +36,7 @@ inputs:
|
||||
required: false
|
||||
default: ""
|
||||
preset:
|
||||
description: "内置方案:vue3 / vue3-hash / dotnet。未设置 dockerfile 时生效(默认留空)"
|
||||
description: "内置方案:vue3 / vue3-hash / dotnet10。未设置 dockerfile 时生效(默认留空)"
|
||||
required: false
|
||||
default: ""
|
||||
|
||||
@@ -76,7 +76,7 @@ runs:
|
||||
elif [ -n "$preset" ]; then
|
||||
dockerfile_path="$ACTION_PATH/$preset.Dockerfile"
|
||||
if [ ! -f "$dockerfile_path" ]; then
|
||||
echo "未知 preset:$preset(可选:vue3 / vue3-hash / dotnet)"
|
||||
echo "未知 preset:$preset(可选:vue3 / vue3-hash / dotnet10)"
|
||||
exit 1
|
||||
fi
|
||||
# preset 的 Dockerfile 用 VERSION 覆盖 package.json 版本 / dotnet Version
|
||||
|
||||
Reference in New Issue
Block a user