mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
* add check for app update; fix ETUI error handling * validate user args * add goreleaser support * replace cgo dependencies (go-rpm) with go equivalents * add acceptance tests against build snapshot * add brew tap + acceptance test pipeline * add mac acceptance tests * fix compare makefile * fix mac acceptance tests * add release pipeline with wait checks * add token to release step * rm dir presenters int test * enforce dpkg to be non interactive Co-authored-by: Alfredo Deza <adeza@anchore.com> * pin brew formulae * pin skopeo to formulae url * only run acceptance tests Co-authored-by: Alfredo Deza <adeza@anchore.com>
39 lines
965 B
Makefile
39 lines
965 B
Makefile
IMAGE = "centos:8"
|
|
IMAGE_CLEAN = $(shell echo $(IMAGE) | tr ":" "_")
|
|
IMGBOM_DIR = imgbom-reports
|
|
IMGBOM_REPORT = $(IMGBOM_DIR)/$(IMAGE_CLEAN).json
|
|
INLINE_DIR = inline-reports
|
|
INLINE_REPORT = $(INLINE_DIR)/$(IMAGE_CLEAN)-content-os.json
|
|
|
|
ifndef IMGBOM_DIR
|
|
$(error IMGBOM_DIR is not set)
|
|
endif
|
|
|
|
ifndef INLINE_DIR
|
|
$(error INLINE_DIR is not set)
|
|
endif
|
|
|
|
.PHONY: all
|
|
all: compare
|
|
|
|
.PHONY: compare
|
|
compare: $(INLINE_REPORT) $(IMGBOM_REPORT)
|
|
docker build -t compare-imgbom:latest .
|
|
docker run compare-imgbom:latest $(IMAGE)
|
|
|
|
$(INLINE_REPORT):
|
|
echo "Creating $(INLINE_REPORT)..."
|
|
mkdir -p $(INLINE_DIR)
|
|
curl -s https://ci-tools.anchore.io/inline_scan-v0.7.0 | bash -s -- -p -r $(IMAGE)
|
|
mv anchore-reports/* $(INLINE_DIR)/
|
|
rmdir anchore-reports
|
|
|
|
$(IMGBOM_REPORT):
|
|
echo "Creating $(IMGBOM_REPORT)..."
|
|
mkdir -p $(IMGBOM_DIR)
|
|
docker pull $(IMAGE)
|
|
go run ../../main.go $(IMAGE) -o json > $(IMGBOM_REPORT)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(INLINE_DIR)/* $(IMGBOM_DIR)/*
|