mirror of
https://github.com/anchore/syft.git
synced 2026-04-03 05:10:36 +02:00
chore: make CPE_CACHE_REGISTRY configurable
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
This commit is contained in:
parent
90198da04d
commit
1a8caa2665
@ -2,18 +2,18 @@ version: "3"
|
||||
|
||||
vars:
|
||||
CPE_CACHE_DIR: "syft/pkg/cataloger/internal/cpegenerate/dictionary/index-generator/.cpe-cache"
|
||||
CPE_CACHE_REGISTRY: "ghcr.io/anchore/syft/cpe-cache:latest"
|
||||
CPE_CACHE_REGISTRY: '{{env "CPE_CACHE_REGISTRY" | default "ghcr.io/anchore/syft/cpe-cache:latest"}}'
|
||||
CPE_INDEX_OUTPUT: "syft/pkg/cataloger/internal/cpegenerate/dictionary/data/cpe-index.json"
|
||||
CPE_GENERATOR_DIR: "syft/pkg/cataloger/internal/cpegenerate/dictionary/index-generator"
|
||||
|
||||
tasks:
|
||||
cache:pull:
|
||||
desc: Pull CPE cache from ORAS registry (ghcr.io/anchore/syft/cpe-cache:latest)
|
||||
desc: Pull CPE cache from ORAS registry
|
||||
# deps: [tools]
|
||||
cmds:
|
||||
- cmd: |
|
||||
set -eu
|
||||
echo "Pulling CPE cache from ORAS registry..."
|
||||
echo "Pulling CPE cache from {{ .CPE_CACHE_REGISTRY }}..."
|
||||
mkdir -p {{ .CPE_CACHE_DIR }}
|
||||
|
||||
# pull compressed files from ORAS
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user