mopidy/Jenkinsfile

25 lines
590 B
Plaintext
Raw Permalink Normal View History

2020-06-29 07:03:10 +00:00
pipeline {
agent any
stages {
stage('build') {
steps {
checkout scm
script {
sh 'git rev-parse HEAD > commit'
def gitCommit = readFile('commit').trim()
def registryHost = "registry.terrible.network"
def imageName = "${registryHost}/terribleplan/mopidy"
// build
def app = docker.build("${imageName}:${gitCommit}")
// beta push
docker.withRegistry("https://${registryHost}", "registry-terrible-network") {
app.push("latest")
}
}
}
}
}
}