Commit 11f1175f by 据说甜蜜呢

删除脚本

parent 03138539
Pipeline #4103 passed with stage
in 18 seconds
......@@ -26,30 +26,12 @@ declare publishOutputDir=./publish
rm -fr ${publishOutputDir}
mkdir -p ${publishOutputDir}
function CI()
{
declare publishable=$1
declare imagename=$2
echo ""
declare imagefullname=${RegistryHost}/${registryUserName}/${imagename}:${version}
declare publishFile=$3
echo "begin delivery for ${imagename}..."
mkdir -p ${publishOutputDir}/${imagename}
dotnet publish ${publishFile} -o ../../publish/${imagename} -c release --no-restore
docker build -t ${imagefullname} ${publishOutputDir}/${imagename}
docker push ${imagefullname}
rm -fr ${publishOutputDir}/${imagename}
echo "delivery for ${imagename}:${version} has been successful."
}
GetServices services
for service in ${services}
do
IsPublishableOf ${service} isPublishable
GetServiceName "${service}" serviceName
CI "${service}" "./src/${service}/${serviceName}.csproj"
CI "${serviceName}" "./src/${service}/${serviceName}/${serviceName}.csproj" ${publishOutputDir}
done
echo ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment