Skip to content

Commit ad2a891

Browse files
Bot Updating Templated Files
1 parent 040405e commit ad2a891

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Jenkinsfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@ pipeline {
8787
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DOCKERHUB_IMAGE + '/tags/'
8888
env.PULL_REQUEST = env.CHANGE_ID
8989
env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE .editorconfig ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.yml ./.github/ISSUE_TEMPLATE/issue.feature.yml ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler.yml ./.github/workflows/greetings.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/call_issue_pr_tracker.yml ./.github/workflows/call_issues_cron.yml ./.github/workflows/permissions.yml ./.github/workflows/external_trigger.yml'
90+
if ( env.SYFT_IMAGE_TAG == null ) {
91+
env.SYFT_IMAGE_TAG = 'latest'
92+
}
9093
}
94+
echo "Using syft image tag ${SYFT_IMAGE_TAG}"
9195
sh '''#! /bin/bash
9296
echo "The default github branch detected as ${GH_DEFAULT_BRANCH}" '''
9397
script{
@@ -710,7 +714,7 @@ pipeline {
710714
docker run --rm \
711715
-v /var/run/docker.sock:/var/run/docker.sock:ro \
712716
-v ${TEMPDIR}:/tmp \
713-
ghcr.io/anchore/syft:v1.26.1 \
717+
ghcr.io/anchore/syft:${SYFT_IMAGE_TAG} \
714718
${LOCAL_CONTAINER} -o table=/tmp/package_versions.txt
715719
NEW_PACKAGE_TAG=$(md5sum ${TEMPDIR}/package_versions.txt | cut -c1-8 )
716720
echo "Package tag sha from current packages in buit container is ${NEW_PACKAGE_TAG} comparing to old ${PACKAGE_TAG} from github"
@@ -819,6 +823,7 @@ pipeline {
819823
-e WEB_AUTH=\"${CI_AUTH}\" \
820824
-e WEB_PATH=\"${CI_WEBPATH}\" \
821825
-e NODE_NAME=\"${NODE_NAME}\" \
826+
-e SYFT_IMAGE_TAG=\"${CI_SYFT_IMAGE_TAG:-${SYFT_IMAGE_TAG}}\" \
822827
-t ghcr.io/linuxserver/ci:latest \
823828
python3 test_build.py'''
824829
}

0 commit comments

Comments
 (0)