@@ -49,7 +49,7 @@ pipeline {
49
49
env. CODE_URL = ' https://github.com/' + env. LS_USER + ' /' + env. LS_REPO + ' /commit/' + env. GIT_COMMIT
50
50
env. DOCKERHUB_LINK = ' https://hub.docker.com/r/' + env. DOCKERHUB_IMAGE + ' /tags/'
51
51
env. PULL_REQUEST = env. CHANGE_ID
52
- env. TEMPLATED_FILES = ' Jenkinsfile README.md LICENSE ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.md ./.github/ISSUE_TEMPLATE/issue.feature.md ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/greetings .yml ./.github/workflows/stale .yml ./.github/workflows/package_trigger .yml ./.github/workflows/package_trigger_scheduler .yml ./.github/workflows/external_trigger.yml ./.github/workflows/external_trigger_scheduler .yml'
52
+ env. TEMPLATED_FILES = ' Jenkinsfile README.md LICENSE ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.md ./.github/ISSUE_TEMPLATE/issue.feature.md ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler .yml ./.github/workflows/greetings .yml ./.github/workflows/package_trigger_scheduler .yml ./.github/workflows/stale .yml ./.github/workflows/external_trigger.yml ./.github/workflows/package_trigger .yml'
53
53
}
54
54
script{
55
55
env. LS_RELEASE_NUMBER = sh(
@@ -354,8 +354,21 @@ pipeline {
354
354
}
355
355
steps {
356
356
echo " Running on node: ${ NODE_NAME} "
357
- sh " docker build --no-cache --pull -t ${ IMAGE} :${ META_TAG} \
358
- --build-arg ${ BUILD_VERSION_ARG} =${ EXT_RELEASE} --build-arg VERSION=\" ${ VERSION_TAG} \" --build-arg BUILD_DATE=${ GITHUB_DATE} ."
357
+ sh " docker build \
358
+ --label \" org.opencontainers.image.created=${ GITHUB_DATE} \" \
359
+ --label \" org.opencontainers.image.authors=linuxserver.io\" \
360
+ --label \" org.opencontainers.image.url=https://github.com/linuxserver/docker-readme-sync/packages\" \
361
+ --label \" org.opencontainers.image.documentation=https://docs.linuxserver.io/images/docker-readme-sync\" \
362
+ --label \" org.opencontainers.image.source=https://github.com/linuxserver/docker-readme-sync\" \
363
+ --label \" org.opencontainers.image.version=${ EXT_RELEASE_CLEAN} -ls${ LS_TAG_NUMBER} \" \
364
+ --label \" org.opencontainers.image.revision=${ COMMIT_SHA} \" \
365
+ --label \" org.opencontainers.image.vendor=linuxserver.io\" \
366
+ --label \" org.opencontainers.image.licenses=GPL-3.0-only\" \
367
+ --label \" org.opencontainers.image.ref.name=${ COMMIT_SHA} \" \
368
+ --label \" org.opencontainers.image.title=Readme-sync\" \
369
+ --label \" org.opencontainers.image.description=readme-sync image by linuxserver.io\" \
370
+ --no-cache --pull -t ${ IMAGE} :${ META_TAG} \
371
+ --build-arg ${ BUILD_VERSION_ARG} =${ EXT_RELEASE} --build-arg VERSION=\" ${ VERSION_TAG} \" --build-arg BUILD_DATE=${ GITHUB_DATE} ."
359
372
}
360
373
}
361
374
// Build MultiArch Docker containers for push to LS Repo
@@ -368,8 +381,21 @@ pipeline {
368
381
stage(' Build X86' ) {
369
382
steps {
370
383
echo " Running on node: ${ NODE_NAME} "
371
- sh " docker build --no-cache --pull -t ${ IMAGE} :amd64-${ META_TAG} \
372
- --build-arg ${ BUILD_VERSION_ARG} =${ EXT_RELEASE} --build-arg VERSION=\" ${ VERSION_TAG} \" --build-arg BUILD_DATE=${ GITHUB_DATE} ."
384
+ sh " docker build \
385
+ --label \" org.opencontainers.image.created=${ GITHUB_DATE} \" \
386
+ --label \" org.opencontainers.image.authors=linuxserver.io\" \
387
+ --label \" org.opencontainers.image.url=https://github.com/linuxserver/docker-readme-sync/packages\" \
388
+ --label \" org.opencontainers.image.documentation=https://docs.linuxserver.io/images/docker-readme-sync\" \
389
+ --label \" org.opencontainers.image.source=https://github.com/linuxserver/docker-readme-sync\" \
390
+ --label \" org.opencontainers.image.version=${ EXT_RELEASE_CLEAN} -ls${ LS_TAG_NUMBER} \" \
391
+ --label \" org.opencontainers.image.revision=${ COMMIT_SHA} \" \
392
+ --label \" org.opencontainers.image.vendor=linuxserver.io\" \
393
+ --label \" org.opencontainers.image.licenses=GPL-3.0-only\" \
394
+ --label \" org.opencontainers.image.ref.name=${ COMMIT_SHA} \" \
395
+ --label \" org.opencontainers.image.title=Readme-sync\" \
396
+ --label \" org.opencontainers.image.description=readme-sync image by linuxserver.io\" \
397
+ --no-cache --pull -t ${ IMAGE} :amd64-${ META_TAG} \
398
+ --build-arg ${ BUILD_VERSION_ARG} =${ EXT_RELEASE} --build-arg VERSION=\" ${ VERSION_TAG} \" --build-arg BUILD_DATE=${ GITHUB_DATE} ."
373
399
}
374
400
}
375
401
stage(' Build ARMHF' ) {
@@ -382,8 +408,21 @@ pipeline {
382
408
sh ''' #! /bin/bash
383
409
echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin
384
410
'''
385
- sh " docker build --no-cache --pull -f Dockerfile.armhf -t ${ IMAGE} :arm32v7-${ META_TAG} \
386
- --build-arg ${ BUILD_VERSION_ARG} =${ EXT_RELEASE} --build-arg VERSION=\" ${ VERSION_TAG} \" --build-arg BUILD_DATE=${ GITHUB_DATE} ."
411
+ sh " docker build \
412
+ --label \" org.opencontainers.image.created=${ GITHUB_DATE} \" \
413
+ --label \" org.opencontainers.image.authors=linuxserver.io\" \
414
+ --label \" org.opencontainers.image.url=https://github.com/linuxserver/docker-readme-sync/packages\" \
415
+ --label \" org.opencontainers.image.documentation=https://docs.linuxserver.io/images/docker-readme-sync\" \
416
+ --label \" org.opencontainers.image.source=https://github.com/linuxserver/docker-readme-sync\" \
417
+ --label \" org.opencontainers.image.version=${ EXT_RELEASE_CLEAN} -ls${ LS_TAG_NUMBER} \" \
418
+ --label \" org.opencontainers.image.revision=${ COMMIT_SHA} \" \
419
+ --label \" org.opencontainers.image.vendor=linuxserver.io\" \
420
+ --label \" org.opencontainers.image.licenses=GPL-3.0-only\" \
421
+ --label \" org.opencontainers.image.ref.name=${ COMMIT_SHA} \" \
422
+ --label \" org.opencontainers.image.title=Readme-sync\" \
423
+ --label \" org.opencontainers.image.description=readme-sync image by linuxserver.io\" \
424
+ --no-cache --pull -f Dockerfile.armhf -t ${ IMAGE} :arm32v7-${ META_TAG} \
425
+ --build-arg ${ BUILD_VERSION_ARG} =${ EXT_RELEASE} --build-arg VERSION=\" ${ VERSION_TAG} \" --build-arg BUILD_DATE=${ GITHUB_DATE} ."
387
426
sh " docker tag ${ IMAGE} :arm32v7-${ META_TAG} ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${ COMMIT_SHA} -${ BUILD_NUMBER} "
388
427
retry(5 ) {
389
428
sh " docker push ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${ COMMIT_SHA} -${ BUILD_NUMBER} "
@@ -403,8 +442,21 @@ pipeline {
403
442
sh ''' #! /bin/bash
404
443
echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin
405
444
'''
406
- sh " docker build --no-cache --pull -f Dockerfile.aarch64 -t ${ IMAGE} :arm64v8-${ META_TAG} \
407
- --build-arg ${ BUILD_VERSION_ARG} =${ EXT_RELEASE} --build-arg VERSION=\" ${ VERSION_TAG} \" --build-arg BUILD_DATE=${ GITHUB_DATE} ."
445
+ sh " docker build \
446
+ --label \" org.opencontainers.image.created=${ GITHUB_DATE} \" \
447
+ --label \" org.opencontainers.image.authors=linuxserver.io\" \
448
+ --label \" org.opencontainers.image.url=https://github.com/linuxserver/docker-readme-sync/packages\" \
449
+ --label \" org.opencontainers.image.documentation=https://docs.linuxserver.io/images/docker-readme-sync\" \
450
+ --label \" org.opencontainers.image.source=https://github.com/linuxserver/docker-readme-sync\" \
451
+ --label \" org.opencontainers.image.version=${ EXT_RELEASE_CLEAN} -ls${ LS_TAG_NUMBER} \" \
452
+ --label \" org.opencontainers.image.revision=${ COMMIT_SHA} \" \
453
+ --label \" org.opencontainers.image.vendor=linuxserver.io\" \
454
+ --label \" org.opencontainers.image.licenses=GPL-3.0-only\" \
455
+ --label \" org.opencontainers.image.ref.name=${ COMMIT_SHA} \" \
456
+ --label \" org.opencontainers.image.title=Readme-sync\" \
457
+ --label \" org.opencontainers.image.description=readme-sync image by linuxserver.io\" \
458
+ --no-cache --pull -f Dockerfile.aarch64 -t ${ IMAGE} :arm64v8-${ META_TAG} \
459
+ --build-arg ${ BUILD_VERSION_ARG} =${ EXT_RELEASE} --build-arg VERSION=\" ${ VERSION_TAG} \" --build-arg BUILD_DATE=${ GITHUB_DATE} ."
408
460
sh " docker tag ${ IMAGE} :arm64v8-${ META_TAG} ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${ COMMIT_SHA} -${ BUILD_NUMBER} "
409
461
retry(5 ) {
410
462
sh " docker push ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${ COMMIT_SHA} -${ BUILD_NUMBER} "
@@ -715,7 +767,7 @@ pipeline {
715
767
echo '{"tag_name":"'${META_TAG}'",\
716
768
"target_commitish": "master",\
717
769
"name": "'${META_TAG}'",\
718
- "body": "**LinuxServer Changes:**\\ n\\ n'${LS_RELEASE_NOTES}'\\ n**OS Changes:**\\ n\\ n' > start
770
+ "body": "**LinuxServer Changes:**\\ n\\ n'${LS_RELEASE_NOTES}'\\ n\\ n **OS Changes:**\\ n\\ n' > start
719
771
printf '","draft": false,"prerelease": false}' >> releasebody.json
720
772
paste -d'\\ 0' start releasebody.json > releasebody.json.done
721
773
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done'''
@@ -740,7 +792,7 @@ pipeline {
740
792
set -e
741
793
TEMPDIR=$(mktemp -d)
742
794
docker pull ghcr.io/linuxserver/jenkins-builder:latest
743
- docker run --rm -e CONTAINER_NAME=${CONTAINER_NAME} -e GITHUB_BRANCH="${BRANCH_NAME}" -v ${TEMPDIR}:/ansible/jenkins ghcr.io/linuxserver/jenkins-builder:latest
795
+ docker run --rm -e CONTAINER_NAME=${CONTAINER_NAME} -e GITHUB_BRANCH="${BRANCH_NAME}" -v ${TEMPDIR}:/ansible/jenkins ghcr.io/linuxserver/jenkins-builder:latest
744
796
docker pull ghcr.io/linuxserver/readme-sync
745
797
docker run --rm=true \
746
798
-e DOCKERHUB_USERNAME=$DOCKERUSER \
0 commit comments