cardano-docker/Jenkinsfile

30 lines
767 B
Plaintext
Raw Permalink Normal View History

2021-02-19 01:56:56 +00:00
pipeline {
agent any
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(daysToKeepStr: '180', numToKeepStr: '30'))
}
stages {
stage('Setup Vars') {
steps {
script {
dockerBuildImage = 'registry.digitalocean.com/nerdfortress/cardano'
}
}
}
stage('build: create container') {
steps {
sh "docker build -t ${env.dockerBuildImage} ${env.tempDir}"
}
}
stage('build: push container') {
steps {
sh "doctl auth init"
sh "doctl registry login"
sh "docker push ${env.dockerBuildImage}"
}
}
}
}