ci: disable docker for ci
Some checks failed
Test if Server can be built / build-server (push) Failing after 21s
Some checks failed
Test if Server can be built / build-server (push) Failing after 21s
This commit is contained in:
parent
dd56c196a7
commit
3c36ab14da
1 changed files with 5 additions and 1 deletions
|
@ -6,7 +6,7 @@ using Nuke.Common.Tools.DotNet;
|
||||||
using Nuke.Common.Tools.SonarScanner;
|
using Nuke.Common.Tools.SonarScanner;
|
||||||
using Serilog;
|
using Serilog;
|
||||||
|
|
||||||
class Build : NukeBuild
|
sealed class Build : NukeBuild
|
||||||
{
|
{
|
||||||
/// Support plugins are available for:
|
/// Support plugins are available for:
|
||||||
/// - JetBrains ReSharper https://nuke.build/resharper
|
/// - JetBrains ReSharper https://nuke.build/resharper
|
||||||
|
@ -18,6 +18,8 @@ class Build : NukeBuild
|
||||||
[Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")]
|
[Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")]
|
||||||
readonly Configuration Configuration = IsLocalBuild ? Configuration.Debug : Configuration.Release;
|
readonly Configuration Configuration = IsLocalBuild ? Configuration.Debug : Configuration.Release;
|
||||||
|
|
||||||
|
[Parameter] readonly bool SupportsDocker = true;
|
||||||
|
|
||||||
[Parameter] readonly string SonarToken;
|
[Parameter] readonly string SonarToken;
|
||||||
[Parameter] readonly string SonarHostUrl;
|
[Parameter] readonly string SonarHostUrl;
|
||||||
|
|
||||||
|
@ -43,6 +45,7 @@ class Build : NukeBuild
|
||||||
Target Compile => _ => _
|
Target Compile => _ => _
|
||||||
.DependsOn(Clean)
|
.DependsOn(Clean)
|
||||||
.DependsOn(Restore)
|
.DependsOn(Restore)
|
||||||
|
.Requires(SupportsDocker)
|
||||||
.Executes(() =>
|
.Executes(() =>
|
||||||
{
|
{
|
||||||
DockerTasks.DockerStackRm(settings => settings.SetStacks("continuity"));
|
DockerTasks.DockerStackRm(settings => settings.SetStacks("continuity"));
|
||||||
|
@ -51,6 +54,7 @@ class Build : NukeBuild
|
||||||
|
|
||||||
Target Pack => _ => _
|
Target Pack => _ => _
|
||||||
.DependsOn(SonarScan)
|
.DependsOn(SonarScan)
|
||||||
|
.Requires(SupportsDocker)
|
||||||
.Executes(() =>
|
.Executes(() =>
|
||||||
{
|
{
|
||||||
DockerTasks.DockerBuild(settings => settings
|
DockerTasks.DockerBuild(settings => settings
|
||||||
|
|
Loading…
Reference in a new issue