Rollux/Jenkinsfile

30 lines
520 B
Plaintext
Raw Normal View History

2019-05-23 16:54:04 +00:00
pipeline {
agent any
stages {
2020-08-27 20:38:36 +00:00
stage('build') {
agent {
docker {
image 'rust'
reuseNode true
}
}
steps {
sh 'cargo build --release'
stash includes: 'target/release/rollux', name: 'app'
}
}
stage('docker build') {
steps {
unstash 'app'
echo 'Starting docker image build'
script {
docker.withRegistry("https://pkg.northcode.no", 'docker-login') {
def image = docker.build("pkg.northcode.no/rollux")
image.push()
}
}
}
2019-05-23 16:54:04 +00:00
}
}
}