Skip to content

Commit de03f4c

Browse files
author
Jake Ginnivan
committed
Fixed syntax errors in deploy.cake
1 parent 3ce4b57 commit de03f4c

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

deploy.cake

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#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
23
#addin "nuget:https://www.nuget.org/api/v2?package=Cake.Docker&version=0.9.5"
34

45
var target = Argument("target", "Deploy");
@@ -207,7 +208,7 @@ Task("Publish-VstsTask")
207208
});
208209

209210
// 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)
211212
{
212213
Information("Starting Docker Build for Image: " + name);
213214

@@ -311,20 +312,20 @@ Task("Publish-DockerImage")
311312
.IsDependentOn("DownloadGitHubReleaseArtifacts")
312313
.Does(() =>
313314
{
314-
PublishDocker("gittools/gitversion", tag, artifactLookup["zip"], "src/Docker/Mono/DockerFile", "/repo");
315+
PublishDocker("gittools/gitversion", tag, artifactLookup["zip"], "src/Docker/Mono/DockerFile", "/repo");
315316
PublishDocker("gittools/gitversion-dotnetcore", tag, artifactLookup["zip-dotnetcore"], "src/Docker/DotNetCore/DockerFile", "c:/repo");
316317
});
317318

318319

319320
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(() =>
328329
{
329330
if(publishingError)
330331
{

0 commit comments

Comments
 (0)