htmxui/Jenkinsfile

22 lines
298 B
Groovy

pipeline {
agent {
docker {
reuseNode true
image 'rust:1-bullseye'
}
}
stages {
stage('Build release binary') {
steps {
sh 'cargo build --release'
}
}
stage('Profit') {
steps {
sh 'docker-compose down || true'
sh 'docker-compose up -d --build'
}
}
}
}