ci(gitlab): Introduce dedicated variable for av scan proxy registry AV_SCAN_PROXY

This commit is contained in:
Dominik Kaminski
2024-10-14 01:24:14 +02:00
parent 30a7e0a0f6
commit a0f8e7aa5f

View File

@@ -506,7 +506,7 @@ avscan-prepare:
- "freshclam"
- "mkdir /scan"
script:
- "export IMAGE=${EXTERNAL_REGISTRY:-${CONTAINER_REGISTRY}}/${CONTAINER_IMAGE}:${CONTAINER_TAG}"
- "export IMAGE=${AV_SCAN_PROXY:-${CONTAINER_REGISTRY}}/${CONTAINER_IMAGE}:${CONTAINER_TAG}"
- "echo Pulling and scanning $IMAGE..."
- "crane pull $IMAGE /scan/image.tar"
- "clamscan /scan"
@@ -514,7 +514,7 @@ avscan-prepare:
CONTAINER_IMAGE: ""
CONTAINER_REGISTRY: ""
CONTAINER_TAG: ""
DATABASE_MIRROR: "https://nexus.souvap-univention.de/repository/ClamAV"
DATABASE_MIRROR: "https://registry.open-de.sk/repository/clamavdb.c3sl.ufpr.br"
EOF
- >
yq '.images