Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
chris | 96a3db5b1f | |
chris | edc938ad1e | |
chris | 7323600ec1 |
|
@ -1,16 +1,16 @@
|
||||||
FROM alpine as build
|
FROM alpine as build
|
||||||
|
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
ENV ALPINE_SERIES 3.15
|
ENV ALPINE_SERIES 3.11
|
||||||
ENV ALPINE_MIRROR https://ftp.halifax.rwth-aachen.de/alpine/v${ALPINE_SERIES}
|
ENV ALPINE_MIRROR https://ftp.halifax.rwth-aachen.de/alpine/v${ALPINE_SERIES}
|
||||||
ENV ALPINE_ARCH x86_64
|
ENV ALPINE_ARCH x86_64
|
||||||
|
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
RUN set -xo pipefail; apk add --no-cache curl gnupg &&\
|
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 &&\
|
||||||
#curl -LO ${ALPINE_MIRROR}/releases/${ALPINE_ARCH}/alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz.asc &&\
|
curl -LO ${ALPINE_MIRROR}/releases/${ALPINE_ARCH}/alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz.asc &&\
|
||||||
#gpg --keyserver pool.sks-keyservers.net --recv 0482D84022F52DF1C4E7CD43293ACD0907D9495A &&\
|
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 &&\
|
gpg --verify alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz.asc alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz &&\
|
||||||
mkdir /dest &&\
|
mkdir /dest &&\
|
||||||
tar -C /dest -xvzf alpine-minirootfs-${VERSION}-${ALPINE_ARCH}.tar.gz &&\
|
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
|
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.15.4"
|
version = "3.11.7"
|
||||||
project = "alpine"
|
project = "alpine"
|
||||||
repo = "zknt"
|
repo = "zknt"
|
||||||
registry = "reg.zknt.org"
|
registry = "reg.zknt.org"
|
||||||
|
@ -14,14 +14,14 @@ pipeline {
|
||||||
script {
|
script {
|
||||||
def customImage = docker.build(registry+'/'+repo+'/'+project, "--pull --build-arg VERSION=$version --build-arg DATE=$timeStamp .")
|
def customImage = docker.build(registry+'/'+repo+'/'+project, "--pull --build-arg VERSION=$version --build-arg DATE=$timeStamp .")
|
||||||
customImage.push(version)
|
customImage.push(version)
|
||||||
customImage.push("3.15")
|
customImage.push("3.11")
|
||||||
def io_registry_credentials = "3deeee3d-6fce-4430-98dd-9b4db56f43f7"
|
def io_registry_credentials = "3deeee3d-6fce-4430-98dd-9b4db56f43f7"
|
||||||
withDockerRegistry([ credentialsId: io_registry_credentials ]) {
|
withDockerRegistry([ credentialsId: io_registry_credentials ]) {
|
||||||
def io_registry_image = repo + '/' + project + ':' + version
|
def io_registry_image = repo + '/' + project + ':' + version
|
||||||
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image
|
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image
|
||||||
sh "docker push " + io_registry_image
|
sh "docker push " + io_registry_image
|
||||||
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image.split(/\:/)[0] + ":3.15"
|
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + io_registry_image.split(/\:/)[0] + ":3.11"
|
||||||
sh "docker push " + io_registry_image.split(/\:/)[0] + ":3.15"
|
sh "docker push " + io_registry_image.split(/\:/)[0] + ":3.11"
|
||||||
}
|
}
|
||||||
|
|
||||||
def quay_credentials= "18fb6f7e-c6bc-4d06-9bf9-08c2af6bfc1a"
|
def quay_credentials= "18fb6f7e-c6bc-4d06-9bf9-08c2af6bfc1a"
|
||||||
|
@ -29,8 +29,8 @@ pipeline {
|
||||||
def quay_image = 'quay.io/' + repo + '/' + project + ':' + version
|
def quay_image = 'quay.io/' + repo + '/' + project + ':' + version
|
||||||
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image
|
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image
|
||||||
sh "docker push " + quay_image
|
sh "docker push " + quay_image
|
||||||
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":3.15"
|
sh "docker image tag " + registry+'/'+repo+'/'+project+':'+version + ' ' + quay_image.split(/\:/)[0] + ":3.11"
|
||||||
sh "docker push " + quay_image.split(/\:/)[0] + ":3.15"
|
sh "docker push " + quay_image.split(/\:/)[0] + ":3.11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ stock alpine
|
||||||
|
|
||||||
Basic Alpine base image, pulling Alpines minirootfs and extracting to `scratch`.
|
Basic Alpine base image, pulling Alpines minirootfs and extracting to `scratch`.
|
||||||
|
|
||||||
Builds both `edge` and latest release (currently `3.14`) in branches.
|
Builds both `edge` and latest release (currently `3.12`) in branches.
|
||||||
|
|
||||||
Source repository: https://git.zknt.org/dockers/alpine
|
Source repository: https://git.zknt.org/dockers/alpine
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
---
|
version: 3.11.7
|
||||||
version: 3.15.4
|
|
||||||
project: alpine
|
project: alpine
|
||||||
additional_tags:
|
additional_tags:
|
||||||
- 3.15
|
- 3.11
|
||||||
|
|
Loading…
Reference in New Issue