@@ -295,7 +295,7 @@ pipeline {
295
295
echo "Jenkinsfile is up to date."
296
296
fi
297
297
echo "Starting Stage 2 - Delete old templates"
298
- 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 "
298
+ 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"
299
299
for i in ${OLD_TEMPLATES}; do
300
300
if [[ -f "${i}" ]]; then
301
301
TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
@@ -525,6 +525,7 @@ pipeline {
525
525
--label \" org.opencontainers.image.title=Librewolf\" \
526
526
--label \" org.opencontainers.image.description=[LibreWolf](https://librewolf.net/) is a custom and independent version of Firefox, with the primary goals of privacy, security and user freedom. LibreWolf also aims to remove all the telemetry, data collection and annoyances, as well as disabling anti-freedom features like DRM.\" \
527
527
--no-cache --pull -t ${ IMAGE} :${ META_TAG} --platform=linux/amd64 \
528
+ --provenance=false --sbom=false \
528
529
--build-arg ${ BUILD_VERSION_ARG} =${ EXT_RELEASE} --build-arg VERSION=\" ${ VERSION_TAG} \" --build-arg BUILD_DATE=${ GITHUB_DATE} ."
529
530
}
530
531
}
@@ -556,6 +557,7 @@ pipeline {
556
557
--label \" org.opencontainers.image.title=Librewolf\" \
557
558
--label \" org.opencontainers.image.description=[LibreWolf](https://librewolf.net/) is a custom and independent version of Firefox, with the primary goals of privacy, security and user freedom. LibreWolf also aims to remove all the telemetry, data collection and annoyances, as well as disabling anti-freedom features like DRM.\" \
558
559
--no-cache --pull -t ${ IMAGE} :amd64-${ META_TAG} --platform=linux/amd64 \
560
+ --provenance=false --sbom=false \
559
561
--build-arg ${ BUILD_VERSION_ARG} =${ EXT_RELEASE} --build-arg VERSION=\" ${ VERSION_TAG} \" --build-arg BUILD_DATE=${ GITHUB_DATE} ."
560
562
}
561
563
}
@@ -584,6 +586,7 @@ pipeline {
584
586
--label \" org.opencontainers.image.title=Librewolf\" \
585
587
--label \" org.opencontainers.image.description=[LibreWolf](https://librewolf.net/) is a custom and independent version of Firefox, with the primary goals of privacy, security and user freedom. LibreWolf also aims to remove all the telemetry, data collection and annoyances, as well as disabling anti-freedom features like DRM.\" \
586
588
--no-cache --pull -f Dockerfile.aarch64 -t ${ IMAGE} :arm64v8-${ META_TAG} --platform=linux/arm64 \
589
+ --provenance=false --sbom=false \
587
590
--build-arg ${ BUILD_VERSION_ARG} =${ EXT_RELEASE} --build-arg VERSION=\" ${ VERSION_TAG} \" --build-arg BUILD_DATE=${ GITHUB_DATE} ."
588
591
sh " docker tag ${ IMAGE} :arm64v8-${ META_TAG} ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${ COMMIT_SHA} -${ BUILD_NUMBER} "
589
592
retry(5 ) {
@@ -707,7 +710,7 @@ pipeline {
707
710
--shm-size=1gb \
708
711
-v /var/run/docker.sock:/var/run/docker.sock \
709
712
-e IMAGE=\" ${IMAGE}\" \
710
- -e DELAY_START =\" ${CI_DELAY}\" \
713
+ -e DOCKER_LOGS_TIMEOUT =\" ${CI_DELAY}\" \
711
714
-e TAGS=\" ${CI_TAGS}\" \
712
715
-e META_TAG=\" ${META_TAG}\" \
713
716
-e PORT=\" ${CI_PORT}\" \
@@ -815,35 +818,13 @@ pipeline {
815
818
docker push ${MANIFESTIMAGE}:amd64-${SEMVER}
816
819
docker push ${MANIFESTIMAGE}:arm64v8-${SEMVER}
817
820
fi
818
- docker manifest push --purge ${MANIFESTIMAGE}:latest || :
819
- docker manifest create ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:amd64-latest ${MANIFESTIMAGE}:arm64v8-latest
820
- docker manifest annotate ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:arm64v8-latest --os linux --arch arm64 --variant v8
821
- docker manifest push --purge ${MANIFESTIMAGE}:${META_TAG} || :
822
- docker manifest create ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG}
823
- docker manifest annotate ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG} --os linux --arch arm64 --variant v8
824
- docker manifest push --purge ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} || :
825
- docker manifest create ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG}
826
- docker manifest annotate ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} --os linux --arch arm64 --variant v8
827
- if [ -n "${SEMVER}" ]; then
828
- docker manifest push --purge ${MANIFESTIMAGE}:${SEMVER} || :
829
- docker manifest create ${MANIFESTIMAGE}:${SEMVER} ${MANIFESTIMAGE}:amd64-${SEMVER} ${MANIFESTIMAGE}:arm64v8-${SEMVER}
830
- docker manifest annotate ${MANIFESTIMAGE}:${SEMVER} ${MANIFESTIMAGE}:arm64v8-${SEMVER} --os linux --arch arm64 --variant v8
831
- fi
832
- token=$(curl -sX GET "https://ghcr.io/token?scope=repository%3Alinuxserver%2F${CONTAINER_NAME}%3Apull" | jq -r '.token')
833
- digest=$(curl -s \
834
- --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
835
- --header "Authorization: Bearer ${token}" \
836
- "https://ghcr.io/v2/linuxserver/${CONTAINER_NAME}/manifests/arm32v7-latest")
837
- if [[ $(echo "$digest" | jq -r '.layers') != "null" ]]; then
838
- docker manifest push --purge ${MANIFESTIMAGE}:arm32v7-latest || :
839
- docker manifest create ${MANIFESTIMAGE}:arm32v7-latest ${MANIFESTIMAGE}:amd64-latest
840
- docker manifest push --purge ${MANIFESTIMAGE}:arm32v7-latest
841
- fi
842
- docker manifest push --purge ${MANIFESTIMAGE}:latest
843
- docker manifest push --purge ${MANIFESTIMAGE}:${META_TAG}
844
- docker manifest push --purge ${MANIFESTIMAGE}:${EXT_RELEASE_TAG}
821
+ done
822
+ for MANIFESTIMAGE in "${IMAGE}" "${GITLABIMAGE}" "${GITHUBIMAGE}" "${QUAYIMAGE}"; do
823
+ docker buildx imagetools create -t ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:amd64-latest ${MANIFESTIMAGE}:arm64v8-latest
824
+ docker buildx imagetools create -t ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG}
825
+ docker buildx imagetools create -t ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG}
845
826
if [ -n "${SEMVER}" ]; then
846
- docker manifest push --purge ${MANIFESTIMAGE}:${SEMVER}
827
+ docker buildx imagetools create -t ${MANIFESTIMAGE}:${SEMVER} ${MANIFESTIMAGE}:amd64-${SEMVER} ${MANIFESTIMAGE}:arm64v8-${SEMVER}
847
828
fi
848
829
done
849
830
'''
0 commit comments