mirror of
https://github.com/anchore/syft.git
synced 2026-04-03 13:20:41 +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:
|
vars:
|
||||||
CPE_CACHE_DIR: "syft/pkg/cataloger/internal/cpegenerate/dictionary/index-generator/.cpe-cache"
|
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_INDEX_OUTPUT: "syft/pkg/cataloger/internal/cpegenerate/dictionary/data/cpe-index.json"
|
||||||
CPE_GENERATOR_DIR: "syft/pkg/cataloger/internal/cpegenerate/dictionary/index-generator"
|
CPE_GENERATOR_DIR: "syft/pkg/cataloger/internal/cpegenerate/dictionary/index-generator"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
cache:pull:
|
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]
|
# deps: [tools]
|
||||||
cmds:
|
cmds:
|
||||||
- cmd: |
|
- cmd: |
|
||||||
set -eu
|
set -eu
|
||||||
echo "Pulling CPE cache from ORAS registry..."
|
echo "Pulling CPE cache from {{ .CPE_CACHE_REGISTRY }}..."
|
||||||
mkdir -p {{ .CPE_CACHE_DIR }}
|
mkdir -p {{ .CPE_CACHE_DIR }}
|
||||||
|
|
||||||
# pull compressed files from ORAS
|
# pull compressed files from ORAS
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user