adding container build, changing dotnet commands

This commit is contained in:
Andy Pack 2023-04-24 09:15:36 +01:00
parent 0bd7bee2a8
commit 2d0d60677c
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7

View File

@ -13,8 +13,8 @@ pipeline {
}
}
steps {
dotnetRestore project: "Selector.Core.sln"
dotnetBuild project: "Selector.Core.sln"
sh "dotnet restore Selector.Core.sln"
sh "dotnet build Selector.Core.sln"
}
}
@ -46,12 +46,19 @@ pipeline {
}
}
steps {
dotnetTest project: "Selector.Core.sln"
sh "dotnet test Selector.Core.sln"
}
}
stage('Deploy') {
steps {
echo 'Deploying....'
docker.withRegistry('https://git.sarsoo.xyz', 'git-registry-creds') {
docker.build("sarsoo/selector-cli:latest",
"-f Dockerfile.CLI .").push()
docker.build("sarsoo/selector-web:latest",
"-f Dockerfile.Web .").push()
}
}
}
}