script block

This commit is contained in:
Andy Pack 2023-04-24 09:16:28 +01:00
parent 2d0d60677c
commit 1f6536c36d
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7

View File

@ -51,13 +51,15 @@ pipeline {
} }
stage('Deploy') { stage('Deploy') {
steps { steps {
docker.withRegistry('https://git.sarsoo.xyz', 'git-registry-creds') { script {
docker.withRegistry('https://git.sarsoo.xyz', 'git-registry-creds') {
docker.build("sarsoo/selector-cli:latest", docker.build("sarsoo/selector-cli:latest",
"-f Dockerfile.CLI .").push() "-f Dockerfile.CLI .").push()
docker.build("sarsoo/selector-web:latest", docker.build("sarsoo/selector-web:latest",
"-f Dockerfile.Web .").push() "-f Dockerfile.Web .").push()
}
} }
} }
} }