new file: Dockerfile
new file: Jenkinsfile new file: alpine-minirootfs-3.11.3-x86_64.tar.gz Initial commit
This commit is contained in:
parent
a1bd8ccf43
commit
e25c7272c7
5
Dockerfile
Normal file
5
Dockerfile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
FROM scratch
|
||||||
|
LABEL maintainer "Jonathan Ervine <docker@ervine.org>" architecture="x86_64" alpineversion="3.11.3" build="18022020"
|
||||||
|
|
||||||
|
ADD alpine-minirootfs-3.11.3-x86_64.tar.gz /
|
||||||
|
CMD ["/bin/sh"]
|
||||||
17
Jenkinsfile
vendored
Normal file
17
Jenkinsfile
vendored
Normal 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-3.11", 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/alpine-3.11"
|
||||||
|
|
||||||
|
stage "publish"
|
||||||
|
app.push("${env.BUILD_NUMBER}")
|
||||||
|
app.push("latest")
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
alpine-minirootfs-3.11.3-x86_64.tar.gz
Normal file
BIN
alpine-minirootfs-3.11.3-x86_64.tar.gz
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user