22 lines
564 B
Groovy
22 lines
564 B
Groovy
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/doh-stub-dnscrypt-proxy"
|
|
|
|
def app = docker.build("${imageName}:${gitCommit}")
|
|
docker.withRegistry("https://${registryHost}", "registry-terrible-network") {
|
|
app.push("latest")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|