Commit f052ced2 by 据说甜蜜呢

修改方法CI

parent cc008acc
Pipeline #4123 passed with stage
in 16 seconds
...@@ -95,7 +95,7 @@ function CI() ...@@ -95,7 +95,7 @@ function CI()
{ {
declare serviceName=$1 declare serviceName=$1
declare publishFile=$2 declare publishFile=$2
declare publishOutputDir=s2 declare publishOutputDir="/tmp/${serviceName}"
GetVersion version GetVersion version
GetImageUserName registryUserName GetImageUserName registryUserName
...@@ -105,10 +105,10 @@ function CI() ...@@ -105,10 +105,10 @@ function CI()
echo "" echo ""
echo "begin delivery for ${serviceName}:${version}..." echo "begin delivery for ${serviceName}:${version}..."
mkdir -p ${publishOutputDir}/${serviceName} mkdir -p ${publishOutputDir}
dotnet publish ${publishFile} -o ../../publish/${serviceName} -c release --no-restore dotnet publish ${publishFile} -o ${publishOutputDir} -c release --no-restore
docker build -t ${imagefullname} ${publishOutputDir}/${serviceName} docker build -t ${imagefullname} ${publishOutputDir}
docker push ${imagefullname} docker push ${imagefullname}
rm -fr ${publishOutputDir}/${serviceName} rm -fr ${publishOutputDir}
echo "delivery for ${serviceName}:${version} has been successful." echo "delivery for ${serviceName}:${version} has been successful."
} }
\ No newline at end of file
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