Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6efdc2a62b | ||
|
|
6364ded993 | ||
|
|
c49c7e6d56 | ||
|
|
fd3331a78b | ||
|
|
60f8992bc9 | ||
|
|
3916ff08f4 | ||
|
|
9522eb01b8 | ||
|
|
0cee30513e | ||
|
|
e8021842ab | ||
|
|
c83657c8f1 | ||
|
|
9ff4cee802 | ||
|
|
93115f70b7 | ||
|
|
34a8ecd445 |
+2
-2
@@ -1,5 +1,5 @@
|
||||
FROM scratch
|
||||
LABEL maintainer "Jonathan Ervine <docker@ervine.org>" architecture="x86_64" alpineversion="3.12.0" build="06072020"
|
||||
LABEL maintainer "Jonathan Ervine <docker@ervine.org>" architecture="x86_64" alpineversion="3.13.1" build="10022021"
|
||||
|
||||
ADD alpine-minirootfs-3.12.0-x86_64.tar.gz /
|
||||
ADD alpine-minirootfs-3.13.1-x86_64.tar.gz /
|
||||
CMD ["/bin/sh"]
|
||||
|
||||
Vendored
+35
-15
@@ -1,18 +1,38 @@
|
||||
node("docker-node") {
|
||||
docker.withRegistry('https://harbor.ervine.dev', 'jenkins-to-harbor') {
|
||||
podTemplate(yaml: """
|
||||
kind: Pod
|
||||
spec:
|
||||
containers:
|
||||
- name: kaniko
|
||||
image: gcr.io/kaniko-project/executor:debug-539ddefcae3fd6b411a95982a830d987f4214251
|
||||
imagePullPolicy: Always
|
||||
command:
|
||||
- /busybox/cat
|
||||
tty: true
|
||||
volumeMounts:
|
||||
- name: jenkins-docker-cfg
|
||||
mountPath: /kaniko/.docker
|
||||
volumes:
|
||||
- name: jenkins-docker-cfg
|
||||
projected:
|
||||
sources:
|
||||
- secret:
|
||||
name: regcred
|
||||
items:
|
||||
- key: .dockerconfigjson
|
||||
path: config.json
|
||||
"""
|
||||
) {
|
||||
|
||||
git branch: "3.12", url: "ssh://git@git.ervine.org/jonny/x86_64-alpine", 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.10"
|
||||
|
||||
stage "publish"
|
||||
app.push("${env.BUILD_NUMBER}")
|
||||
app.push("latest")
|
||||
app.push("3.12")
|
||||
node(POD_LABEL) {
|
||||
stage('Build with Kaniko') {
|
||||
git 'https://git.ervine.org/jonny/x86_64-alpine.git'
|
||||
container('kaniko') {
|
||||
sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=true --destination=harbor.ervine.dev/public/x86_64/alpine:v3.13.1 --destination=harbor.ervine.dev/public/x86_64/alpine:v3.13'
|
||||
}
|
||||
}
|
||||
stage('Notify gchat') {
|
||||
hangoutsNotify message: "Alpine 3.13.1 has built",token: "A2ET831pVslqXTqAx6ycu573r",threadByJob: false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user