new file: Dockerfile

new file:   Jenkinsfile
Initial commit
This commit is contained in:
2020-02-18 09:27:43 +00:00
parent 16d025083a
commit 311f2ff3bd
2 changed files with 57 additions and 0 deletions
Vendored
+17
View File
@@ -0,0 +1,17 @@
node("docker-node") {
docker.withRegistry('https://harbor.ervine.dev', 'jenkins-to-harbor') {
git branch: "3.11.3", url: "ssh://git@git.ervine.org:2222/jonny/x86_64-alpine-cp", 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 "library/x86_64/alpine/couchpotato"
stage "publish"
app.push("${env.BUILD_NUMBER}")
app.push("latest")
}
}