-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.cake
41 lines (35 loc) · 925 Bytes
/
deploy.cake
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
36
37
38
39
40
41
#load ./build/cake/core.cake
Task("Build")
.IsDependentOn("Version")
.Does(() => {
});
Task("Test")
.IsDependentOn("Build")
.Does(() => {
{
var settings = new DockerComposeRunSettings {
Entrypoint = "powershell -File ./build/docker/chocolatey.package.install.ps1",
};
var service = "chocolatey";
var command = $"{packageVersion}";
DockerComposeRun(settings, service, command);
}
});
Task("Package")
.IsDependentOn("Test")
.Does(() => {
});
Task("Publish")
.IsDependentOn("Package")
.Does(() => {
if (string.IsNullOrEmpty(chocolateyServer)) {
return;
}
var settings = new DockerComposeRunSettings {
Entrypoint = "powershell -File ./build/docker/chocolatey.package.push.ps1",
};
var service = "chocolatey";
var command = $"{packageVersion}";
DockerComposeRun(settings, service, command);
});
RunTarget(target);