|
1 | 1 | #addin "nuget:https://www.nuget.org/api/v2?package=Cake.Json&version=3.0.1"
|
| 2 | +#addin nuget:?package=Newtonsoft.Json&version=9.0.1 |
2 | 3 | #addin "nuget:https://www.nuget.org/api/v2?package=Cake.Docker&version=0.9.5"
|
3 | 4 |
|
4 | 5 | var target = Argument("target", "Deploy");
|
@@ -207,7 +208,7 @@ Task("Publish-VstsTask")
|
207 | 208 | });
|
208 | 209 |
|
209 | 210 | // PublishDocker("gittools/gitversion", tag, "content.zip", "/some/path/DockerFile");
|
210 |
| -bool PublishDocker(string name, tagName, contentZip, dockerFilePath, containerVolume) |
| 211 | +bool PublishDocker(string name, string tagName, string contentZip, string dockerFilePath, string containerVolume) |
211 | 212 | {
|
212 | 213 | Information("Starting Docker Build for Image: " + name);
|
213 | 214 |
|
@@ -311,20 +312,20 @@ Task("Publish-DockerImage")
|
311 | 312 | .IsDependentOn("DownloadGitHubReleaseArtifacts")
|
312 | 313 | .Does(() =>
|
313 | 314 | {
|
314 |
| - PublishDocker("gittools/gitversion", tag, artifactLookup["zip"], "src/Docker/Mono/DockerFile", "/repo"); |
| 315 | + PublishDocker("gittools/gitversion", tag, artifactLookup["zip"], "src/Docker/Mono/DockerFile", "/repo"); |
315 | 316 | PublishDocker("gittools/gitversion-dotnetcore", tag, artifactLookup["zip-dotnetcore"], "src/Docker/DotNetCore/DockerFile", "c:/repo");
|
316 | 317 | });
|
317 | 318 |
|
318 | 319 |
|
319 | 320 | Task("Deploy")
|
320 |
| - .IsDependentOn("Publish-NuGetPackage") |
321 |
| - .IsDependentOn("Publish-NuGetCommandLine") |
322 |
| - .IsDependentOn("Publish-MsBuildTask") |
323 |
| - .IsDependentOn("Publish-Chocolatey") |
324 |
| -// .IsDependentOn("Publish-Gem") |
325 |
| - .IsDependentOn("Publish-VstsTask") |
326 |
| - .IsDependentOn("Publish-DockerImage") |
327 |
| - .Finally(() => |
| 321 | + .IsDependentOn("Publish-NuGetPackage") |
| 322 | + .IsDependentOn("Publish-NuGetCommandLine") |
| 323 | + .IsDependentOn("Publish-MsBuildTask") |
| 324 | + .IsDependentOn("Publish-Chocolatey") |
| 325 | + // .IsDependentOn("Publish-Gem") |
| 326 | + .IsDependentOn("Publish-VstsTask") |
| 327 | + .IsDependentOn("Publish-DockerImage") |
| 328 | + .Finally(() => |
328 | 329 | {
|
329 | 330 | if(publishingError)
|
330 | 331 | {
|
|
0 commit comments