diff --git a/.ci/podman.mk b/.ci/podman.mk index 3e8b720..e73cae9 100644 --- a/.ci/podman.mk +++ b/.ci/podman.mk @@ -4,10 +4,8 @@ TAG ?= $(shell echo $(GTAG) | awk -F '-' '{ print $$1 "-" $$2 }' | sed -e 's/-$$ # EXTRA_TAGS supposed to be set at the caller, eg. $(shell echo $(TAG) | awk -F '.' '{ print $$1 "." $$2 }') -ifeq ($(TRIVY_REMOTE),) - TRIVY_OPTS := image -else - TRIVY_OPTS := client --remote ${TRIVY_REMOTE} +ifneq ($(TRIVY_REMOTE),) + TRIVY_OPTS := --server ${TRIVY_REMOTE} endif .PHONY: build test scan push clean @@ -26,7 +24,7 @@ test: build rm-test-image scan: build @echo "Scanning $(REGISTRY)/$(IMAGE):$(TAG) using Trivy" - @trivy $(TRIVY_OPTS) $(REGISTRY)/$(IMAGE):$(TAG) + @trivy image $(TRIVY_OPTS) $(REGISTRY)/$(IMAGE):$(TAG) push: build @aws ecr-public get-login-password --region $(REGION) | docker login --username AWS --password-stdin $(REGISTRY)