Jenkins 结合docker持续集成发布.netcore应用程序

dotnet restore
dotnet build
mkdir D:\test\t3\publish
dotnet publish -o D:\test\t3\publish
copy pubDockerfile D:\test\t3\publish\Dockerfile
"C:\Program Files\7-Zip\7z.exe" a D:\test\publish.tar D:\test\t3\publish\*
curl -X POST "http://192.168.0.107:10000/api/Images/Build?Name=t6" -H "accept: text/plain" -H "Content-Type: multipart/form-data" -F "file=@D:\test\publish.tar;type=application/x-tar"
curl -X POST "http://192.168.0.107:10000/api/Images/Tag?name=t6" -H "accept: */*" -H "Content-Type: applicatio
posted @ 2022-12-03 09:09  星火燎猿*  阅读(21)  评论(0编辑  收藏  举报