File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,11 @@ pipeline {
96
96
env. DOCKERHUB_LINK = ' https://hub.docker.com/r/' + env. DOCKERHUB_IMAGE + ' /tags/'
97
97
env. PULL_REQUEST = env. CHANGE_ID
98
98
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'
99
+ if ( env. SYFT_IMAGE_TAG == null ) {
100
+ env. SYFT_IMAGE_TAG = ' latest'
101
+ }
99
102
}
103
+ echo " Using syft image tag ${ SYFT_IMAGE_TAG} "
100
104
sh ''' #! /bin/bash
101
105
echo "The default github branch detected as ${GH_DEFAULT_BRANCH}" '''
102
106
script{
@@ -783,7 +787,7 @@ pipeline {
783
787
docker run --rm \
784
788
-v /var/run/docker.sock:/var/run/docker.sock:ro \
785
789
-v ${TEMPDIR}:/tmp \
786
- ghcr.io/anchore/syft:v1.26.1 \
790
+ ghcr.io/anchore/syft:${SYFT_IMAGE_TAG} \
787
791
${LOCAL_CONTAINER} -o table=/tmp/package_versions.txt
788
792
NEW_PACKAGE_TAG=$(md5sum ${TEMPDIR}/package_versions.txt | cut -c1-8 )
789
793
echo "Package tag sha from current packages in buit container is ${NEW_PACKAGE_TAG} comparing to old ${PACKAGE_TAG} from github"
@@ -893,6 +897,7 @@ pipeline {
893
897
-e WEB_AUTH=\" ${CI_AUTH}\" \
894
898
-e WEB_PATH=\" ${CI_WEBPATH}\" \
895
899
-e NODE_NAME=\" ${NODE_NAME}\" \
900
+ -e SYFT_IMAGE_TAG=\" ${CI_SYFT_IMAGE_TAG:-${SYFT_IMAGE_TAG}}\" \
896
901
-t ghcr.io/linuxserver/ci:latest \
897
902
python3 test_build.py'''
898
903
}
You can’t perform that action at this time.
0 commit comments