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