ci: disable docker for ci
Some checks failed
Test if Server can be built / build-server (push) Failing after 32s
Some checks failed
Test if Server can be built / build-server (push) Failing after 32s
This commit is contained in:
parent
3c36ab14da
commit
1de17ed73e
1 changed files with 15 additions and 2 deletions
|
@ -45,18 +45,26 @@ sealed class Build : NukeBuild
|
|||
Target Compile => _ => _
|
||||
.DependsOn(Clean)
|
||||
.DependsOn(Restore)
|
||||
.Requires(SupportsDocker)
|
||||
.Executes(() =>
|
||||
{
|
||||
if (!SupportsDocker)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
DockerTasks.DockerStackRm(settings => settings.SetStacks("continuity"));
|
||||
DotNetTasks.DotNetBuild(settings => settings.SetNoRestore(true));
|
||||
});
|
||||
|
||||
Target Pack => _ => _
|
||||
.DependsOn(SonarScan)
|
||||
.Requires(SupportsDocker)
|
||||
.Executes(() =>
|
||||
{
|
||||
if (!SupportsDocker)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
DockerTasks.DockerBuild(settings => settings
|
||||
.SetPath(AbsolutePath.Create(RootDirectory))
|
||||
.SetFile("Server/Dockerfile")
|
||||
|
@ -86,6 +94,11 @@ sealed class Build : NukeBuild
|
|||
|
||||
Target Deploy => _ => _.DependsOn(Pack).Executes(() =>
|
||||
{
|
||||
if (!SupportsDocker)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
DockerTasks.DockerPull(settings => settings.SetName("postgres:16.0-alpine"));
|
||||
if (IsLocalBuild)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue