Compare commits
15 Commits
Author | SHA1 | Date |
---|---|---|
chris | 4c6cb823bd | |
chris | 1694e4212b | |
chris | 571153ae43 | |
chris | 6e513337d9 | |
chris | 0a44d08522 | |
chris | 4fd7b40e4f | |
chris | ca1707df21 | |
chris | 3778a96891 | |
chris | 099ba43d2d | |
chris | a2639b69b2 | |
chris | eab394a7e8 | |
chris | ef8defeb5c | |
chris | a648a15202 | |
chris | 82d031f189 | |
chris | 89bd5d73e1 |
|
@ -1,16 +1,16 @@
|
|||
FROM alpine as build
|
||||
|
||||
ARG VERSION
|
||||
ENV ALPINE_SERIES 3.12
|
||||
ENV ALPINE_SERIES 3.15
|
||||
ENV ALPINE_MIRROR https://ftp.halifax.rwth-aachen.de/alpine/v${ALPINE_SERIES}
|
||||
ENV ALPINE_ARCH x86_64
|
||||
|
||||
WORKDIR /root
|
||||
RUN set -xo pipefail; apk add --no-cache curl gnupg &&\
|
||||
curl -LO ${ALPINE_MIRROR}/releases/${ALPINE_ARCH}/alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz &&\
|
||||
curl -LO ${ALPINE_MIRROR}/releases/${ALPINE_ARCH}/alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz.asc &&\
|
||||
gpg --keyserver pool.sks-keyservers.net --recv 0482D84022F52DF1C4E7CD43293ACD0907D9495A &&\
|
||||
gpg --verify alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz.asc alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz &&\
|
||||
#curl -LO ${ALPINE_MIRROR}/releases/${ALPINE_ARCH}/alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz.asc &&\
|
||||
#gpg --keyserver pool.sks-keyservers.net --recv 0482D84022F52DF1C4E7CD43293ACD0907D9495A &&\
|
||||
#gpg --verify alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz.asc alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz &&\
|
||||
mkdir /dest &&\
|
||||
tar -C /dest -xvzf alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz &&\
|
||||
sed -i "s#http://dl-cdn.alpinelinux.org/alpine/v${ALPINE_SERIES}#${ALPINE_MIRROR}#g" /dest/etc/apk/repositories
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
version = "3.12.3"
|
||||
version = "3.15.4"
|
||||
project = "alpine"
|
||||
repo = "zknt"
|
||||
registry = "reg.zknt.org"
|
||||
|
@ -14,17 +14,14 @@ pipeline {
|
|||
script {
|
||||
def customImage = docker.build(registry+'/'+repo+'/'+project, "--pull --build-arg VERSION=$version --build-arg DATE=$timeStamp .")
|
||||
customImage.push(version)
|
||||
customImage.push("latest")
|
||||
customImage.push("3.12")
|
||||
customImage.push("3.15")
|
||||
def io_registry_credentials = "3deeee3d-6fce-4430-98dd-9b4db56f43f7"
|
||||
withDockerRegistry([ credentialsId: io_registry_credentials ]) {
|
||||
def io_registry_image = repo + '/' + project + ':' + version
|
||||
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image
|
||||
sh "docker push " + io_registry_image
|
||||
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image.split(/\:/)[0] + ":latest"
|
||||
sh "docker push " + io_registry_image.split(/\:/)[0] + ":latest"
|
||||
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image.split(/\:/)[0] + ":3.12"
|
||||
sh "docker push " + io_registry_image.split(/\:/)[0] + ":3.12"
|
||||
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image.split(/\:/)[0] + ":3.15"
|
||||
sh "docker push " + io_registry_image.split(/\:/)[0] + ":3.15"
|
||||
}
|
||||
|
||||
def quay_credentials= "18fb6f7e-c6bc-4d06-9bf9-08c2af6bfc1a"
|
||||
|
@ -32,10 +29,8 @@ pipeline {
|
|||
def quay_image = 'quay.io/' + repo + '/' + project + ':' + version
|
||||
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image
|
||||
sh "docker push " + quay_image
|
||||
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":latest"
|
||||
sh "docker push " + quay_image.split(/\:/)[0] + ":latest"
|
||||
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":3.12"
|
||||
sh "docker push " + quay_image.split(/\:/)[0] + ":3.12"
|
||||
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":3.15"
|
||||
sh "docker push " + quay_image.split(/\:/)[0] + ":3.15"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ stock alpine
|
|||
|
||||
Basic Alpine base image, pulling Alpines minirootfs and extracting to `scratch`.
|
||||
|
||||
Builds both `edge` and latest release (currently `3.12`) in branches.
|
||||
Builds both `edge` and latest release (currently `3.14`) in branches.
|
||||
|
||||
Source repository: https://git.zknt.org/dockers/alpine
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
version: 3.12.3
|
||||
---
|
||||
version: 3.15.4
|
||||
project: alpine
|
||||
additional_tags:
|
||||
- latest
|
||||
- 3.12
|
||||
- 3.15
|
||||
|
|
Loading…
Reference in New Issue