2023-05-01 08:47:46 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Deploy') {
|
|
|
|
when { branch 'master' }
|
|
|
|
steps {
|
|
|
|
script {
|
2024-02-01 19:05:13 +00:00
|
|
|
docker.withRegistry('https://registry.sarsoo.xyz', 'git-registry-creds')
|
2024-02-01 18:21:02 +00:00
|
|
|
{
|
2024-02-01 19:05:13 +00:00
|
|
|
docker.build("sarsoo/draught:latest").push()
|
2023-05-01 08:47:46 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
|
|
|
cleanWs()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|