draught/.jenkins/jenkinsfile

34 lines
672 B
Plaintext
Raw Normal View History

2023-05-01 08:47:46 +01:00
pipeline {
agent any
stages {
2024-02-01 21:18:21 +00:00
stage('Build') {
steps {
sh 'cargo build'
}
}
stage('Test') {
steps {
sh 'cargo test'
}
}
2023-05-01 08:47:46 +01:00
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()
}
}
}