22 lines
296 B
Plaintext
22 lines
296 B
Plaintext
|
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'
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|