-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.cake
More file actions
35 lines (27 loc) · 1.05 KB
/
deploy.cake
File metadata and controls
35 lines (27 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#addin "nuget:https://api.nuget.org/v3/index.json?package=Cake.Powershell&version=0.4.8"
#addin "nuget:https://api.nuget.org/v3/index.json?package=Cake.Json&version=4.0.0"
#addin "nuget:https://api.nuget.org/v3/index.json?package=Cake.Deploy.Variables&version=0.3.0"
#addin "nuget:https://api.nuget.org/v3/index.json?package=Cake.Npm&version=0.17.0"
#load "command-runner/command-runner.cake"
#load "command-runner/powershell-command-runner.cake"
#load "commands/commands-az.cake"
#load "npm.cake"
#load "variables-default.cake"
#load "variables-dev.cake"
CommandRunner az;
PowershellCommandRunner ps;
Setup(context =>
{
az = new CommandRunner(context, "az");
ps = new PowershellCommandRunner(context);
});
Task("Default-Az-Show-Version")
.IsDependentOn("Install-NpmPackages")
.IsDependentOn("Az-Show-Version");
Task("Az-Login")
.IsDependentOn("Login");
Task("Az-Login-With-Set-Subscription")
.IsDependentOn("Az-Login")
.IsDependentOn("Set-Subscription");
var targetName = Argument("target", "Default-Az-Show-Version");
RunTarget(targetName);