snapcast-server/Jenkinsfile

25 lines
599 B
Plaintext
Raw Permalink Normal View History

2020-06-29 02:37:50 +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/snapcast-server"
// build
def app = docker.build("${imageName}:${gitCommit}")
// beta push
docker.withRegistry("https://${registryHost}", "registry-terrible-network") {
app.push("latest")
}
}
}
}
}
}