Skip to content

Commit 9822873

Browse files
Bot Updating Templated Files
1 parent 81d9ac1 commit 9822873

File tree

1 file changed

+8
-30
lines changed

1 file changed

+8
-30
lines changed

Jenkinsfile

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ pipeline {
299299
echo "Jenkinsfile is up to date."
300300
fi
301301
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"
303303
for i in ${OLD_TEMPLATES}; do
304304
if [[ -f "${i}" ]]; then
305305
TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
@@ -677,7 +677,7 @@ pipeline {
677677
--shm-size=1gb \
678678
-v /var/run/docker.sock:/var/run/docker.sock \
679679
-e IMAGE=\"${IMAGE}\" \
680-
-e DELAY_START=\"${CI_DELAY}\" \
680+
-e DOCKER_LOGS_TIMEOUT=\"${CI_DELAY}\" \
681681
-e TAGS=\"${CI_TAGS}\" \
682682
-e META_TAG=\"${META_TAG}\" \
683683
-e PORT=\"${CI_PORT}\" \
@@ -785,35 +785,13 @@ pipeline {
785785
docker push ${MANIFESTIMAGE}:amd64-${SEMVER}
786786
docker push ${MANIFESTIMAGE}:arm64v8-${SEMVER}
787787
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}
815793
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}
817795
fi
818796
done
819797
'''

0 commit comments

Comments
 (0)