@@ -299,7 +299,7 @@ pipeline {
299
299
echo "Jenkinsfile is up to date."
300
300
fi
301
301
echo "Starting Stage 2 - Delete old templates"
302
- OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md .github/ISSUE_TEMPLATE/issue.bug.md .github/ISSUE_TEMPLATE/issue.feature.md .github/workflows/call_invalid_helper.yml .github/workflows/stale.yml Dockerfile.armhf "
302
+ OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md .github/ISSUE_TEMPLATE/issue.bug.md .github/ISSUE_TEMPLATE/issue.feature.md .github/workflows/call_invalid_helper.yml .github/workflows/stale.yml"
303
303
for i in ${OLD_TEMPLATES}; do
304
304
if [[ -f "${i}" ]]; then
305
305
TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
@@ -677,7 +677,7 @@ pipeline {
677
677
--shm-size=1gb \
678
678
-v /var/run/docker.sock:/var/run/docker.sock \
679
679
-e IMAGE=\" ${IMAGE}\" \
680
- -e DELAY_START =\" ${CI_DELAY}\" \
680
+ -e DOCKER_LOGS_TIMEOUT =\" ${CI_DELAY}\" \
681
681
-e TAGS=\" ${CI_TAGS}\" \
682
682
-e META_TAG=\" ${META_TAG}\" \
683
683
-e PORT=\" ${CI_PORT}\" \
@@ -785,35 +785,13 @@ pipeline {
785
785
docker push ${MANIFESTIMAGE}:amd64-${SEMVER}
786
786
docker push ${MANIFESTIMAGE}:arm64v8-${SEMVER}
787
787
fi
788
- docker manifest push --purge ${MANIFESTIMAGE}:latest || :
789
- docker manifest create ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:amd64-latest ${MANIFESTIMAGE}:arm64v8-latest
790
- docker manifest annotate ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:arm64v8-latest --os linux --arch arm64 --variant v8
791
- docker manifest push --purge ${MANIFESTIMAGE}:${META_TAG} || :
792
- docker manifest create ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG}
793
- docker manifest annotate ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG} --os linux --arch arm64 --variant v8
794
- docker manifest push --purge ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} || :
795
- docker manifest create ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG}
796
- docker manifest annotate ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} --os linux --arch arm64 --variant v8
797
- if [ -n "${SEMVER}" ]; then
798
- docker manifest push --purge ${MANIFESTIMAGE}:${SEMVER} || :
799
- docker manifest create ${MANIFESTIMAGE}:${SEMVER} ${MANIFESTIMAGE}:amd64-${SEMVER} ${MANIFESTIMAGE}:arm64v8-${SEMVER}
800
- docker manifest annotate ${MANIFESTIMAGE}:${SEMVER} ${MANIFESTIMAGE}:arm64v8-${SEMVER} --os linux --arch arm64 --variant v8
801
- fi
802
- token=$(curl -sX GET "https://ghcr.io/token?scope=repository%3Alinuxserver%2F${CONTAINER_NAME}%3Apull" | jq -r '.token')
803
- digest=$(curl -s \
804
- --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
805
- --header "Authorization: Bearer ${token}" \
806
- "https://ghcr.io/v2/linuxserver/${CONTAINER_NAME}/manifests/arm32v7-latest")
807
- if [[ $(echo "$digest" | jq -r '.layers') != "null" ]]; then
808
- docker manifest push --purge ${MANIFESTIMAGE}:arm32v7-latest || :
809
- docker manifest create ${MANIFESTIMAGE}:arm32v7-latest ${MANIFESTIMAGE}:amd64-latest
810
- docker manifest push --purge ${MANIFESTIMAGE}:arm32v7-latest
811
- fi
812
- docker manifest push --purge ${MANIFESTIMAGE}:latest
813
- docker manifest push --purge ${MANIFESTIMAGE}:${META_TAG}
814
- docker manifest push --purge ${MANIFESTIMAGE}:${EXT_RELEASE_TAG}
788
+ done
789
+ for MANIFESTIMAGE in "${IMAGE}" "${GITLABIMAGE}" "${GITHUBIMAGE}" "${QUAYIMAGE}"; do
790
+ docker buildx imagetools create -t ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:amd64-latest ${MANIFESTIMAGE}:arm64v8-latest
791
+ docker buildx imagetools create -t ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG}
792
+ docker buildx imagetools create -t ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG}
815
793
if [ -n "${SEMVER}" ]; then
816
- docker manifest push --purge ${MANIFESTIMAGE}:${SEMVER}
794
+ docker buildx imagetools create -t ${MANIFESTIMAGE}:${SEMVER} ${MANIFESTIMAGE}:amd64-${SEMVER} ${MANIFESTIMAGE}:arm64v8-${SEMVER}
817
795
fi
818
796
done
819
797
'''
0 commit comments