|
|
@ -347,7 +347,9 @@ pipeline {
|
|
|
|
sh "docker build --no-cache --pull -f Dockerfile.armhf -t ${IMAGE}:arm32v7-${META_TAG} \
|
|
|
|
sh "docker build --no-cache --pull -f Dockerfile.armhf -t ${IMAGE}:arm32v7-${META_TAG} \
|
|
|
|
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${META_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
|
|
|
|
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${META_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
|
|
|
|
sh "docker tag ${IMAGE}:arm32v7-${META_TAG} lsiodev/buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER}"
|
|
|
|
sh "docker tag ${IMAGE}:arm32v7-${META_TAG} lsiodev/buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER}"
|
|
|
|
|
|
|
|
retry(5) {
|
|
|
|
sh "docker push lsiodev/buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER}"
|
|
|
|
sh "docker push lsiodev/buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER}"
|
|
|
|
|
|
|
|
}
|
|
|
|
sh '''docker rmi \
|
|
|
|
sh '''docker rmi \
|
|
|
|
${IMAGE}:arm32v7-${META_TAG} \
|
|
|
|
${IMAGE}:arm32v7-${META_TAG} \
|
|
|
|
lsiodev/buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER} || :'''
|
|
|
|
lsiodev/buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER} || :'''
|
|
|
@ -374,7 +376,9 @@ pipeline {
|
|
|
|
sh "docker build --no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} \
|
|
|
|
sh "docker build --no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} \
|
|
|
|
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${META_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
|
|
|
|
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${META_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
|
|
|
|
sh "docker tag ${IMAGE}:arm64v8-${META_TAG} lsiodev/buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}"
|
|
|
|
sh "docker tag ${IMAGE}:arm64v8-${META_TAG} lsiodev/buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}"
|
|
|
|
|
|
|
|
retry(5) {
|
|
|
|
sh "docker push lsiodev/buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}"
|
|
|
|
sh "docker push lsiodev/buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}"
|
|
|
|
|
|
|
|
}
|
|
|
|
sh '''docker rmi \
|
|
|
|
sh '''docker rmi \
|
|
|
|
${IMAGE}:arm64v8-${META_TAG} \
|
|
|
|
${IMAGE}:arm64v8-${META_TAG} \
|
|
|
|
lsiodev/buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || :'''
|
|
|
|
lsiodev/buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || :'''
|
|
|
@ -539,6 +543,7 @@ pipeline {
|
|
|
|
passwordVariable: 'QUAYPASS'
|
|
|
|
passwordVariable: 'QUAYPASS'
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]) {
|
|
|
|
]) {
|
|
|
|
|
|
|
|
retry(5) {
|
|
|
|
sh '''#! /bin/bash
|
|
|
|
sh '''#! /bin/bash
|
|
|
|
set -e
|
|
|
|
set -e
|
|
|
|
echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin
|
|
|
|
echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin
|
|
|
@ -551,6 +556,9 @@ pipeline {
|
|
|
|
docker push ${PUSHIMAGE}:latest
|
|
|
|
docker push ${PUSHIMAGE}:latest
|
|
|
|
docker push ${PUSHIMAGE}:${META_TAG}
|
|
|
|
docker push ${PUSHIMAGE}:${META_TAG}
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
sh '''#! /bin/bash
|
|
|
|
for DELETEIMAGE in "${QUAYIMAGE}" "${GITHUBIMAGE}" "{GITLABIMAGE}" "${IMAGE}"; do
|
|
|
|
for DELETEIMAGE in "${QUAYIMAGE}" "${GITHUBIMAGE}" "{GITLABIMAGE}" "${IMAGE}"; do
|
|
|
|
docker rmi \
|
|
|
|
docker rmi \
|
|
|
|
${DELETEIMAGE}:${META_TAG} \
|
|
|
|
${DELETEIMAGE}:${META_TAG} \
|
|
|
@ -581,6 +589,7 @@ pipeline {
|
|
|
|
passwordVariable: 'QUAYPASS'
|
|
|
|
passwordVariable: 'QUAYPASS'
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]) {
|
|
|
|
]) {
|
|
|
|
|
|
|
|
retry(5) {
|
|
|
|
sh '''#! /bin/bash
|
|
|
|
sh '''#! /bin/bash
|
|
|
|
set -e
|
|
|
|
set -e
|
|
|
|
echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin
|
|
|
|
echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin
|
|
|
@ -634,6 +643,7 @@ pipeline {
|
|
|
|
docker push ${LEGACYIMAGE}:arm64v8-latest
|
|
|
|
docker push ${LEGACYIMAGE}:arm64v8-latest
|
|
|
|
done
|
|
|
|
done
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
}
|
|
|
|
sh '''#! /bin/bash
|
|
|
|
sh '''#! /bin/bash
|
|
|
|
for DELETEIMAGE in "${QUAYIMAGE}" "${GITHUBIMAGE}" "${GITLABIMAGE}" "${IMAGE}"; do
|
|
|
|
for DELETEIMAGE in "${QUAYIMAGE}" "${GITHUBIMAGE}" "${GITLABIMAGE}" "${IMAGE}"; do
|
|
|
|
docker rmi \
|
|
|
|
docker rmi \
|
|
|
|