x86_64-alpine-muximux/Jenkinsfile
Jonny Ervine 44b322fdf9 new file: Dockerfile
new file:   Jenkinsfile
Initial commit
2020-02-19 03:40:33 +00:00

18 lines
568 B
Groovy

node("docker-node") {
docker.withRegistry('https://harbor.ervine.org', credentials: 'jenkins-to-harbor') {
git branch: "3.11.3", url: "ssh://git@git.ervine.org:2222/jonny/x86_64-alpine-muximux", credentialsId: 'jenkins-to-git'
sh "git rev-parse HEAD > .git/commit-id"
def commit_id = readFile('.git/commit-id').trim()
println commit_id
stage "build"
def app = docker.build "x86_64/alpine/muximux"
stage "publish"
app.push("${env.BUILD_NUMBER}")
app.push("latest")
}
}