From 0de7189a7425b30dce4961e4ba6745932dbcbf4d Mon Sep 17 00:00:00 2001 From: ABHISHEK KUMAR SINGH <111341228+akumars1@users.noreply.github.com> Date: Tue, 28 May 2024 16:50:33 +0530 Subject: [PATCH] Added support for build and push package-scanner-cli (#76) * Added support for build and push package-scanner-cli * Added support for push docker-cli --------- Co-authored-by: ramanan-ravi --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 46b1410..7731ec3 100644 --- a/Makefile +++ b/Makefile @@ -29,9 +29,9 @@ cli: vendor $(PWD)/**/*.go $(PWD)/agent-plugins-grpc/**/*.go package-scanner: vendor $(PWD)/**/*.go $(PWD)/agent-plugins-grpc/**/*.go CGO_ENABLED=0 go build -buildvcs=false -v -ldflags="-s -w -extldflags=-static" . -.PHONY: docker -docker: - docker build -t $(IMAGE_REPOSITORY)/deepfence_package_scanner:$(DF_IMG_TAG) . +.PHONY: publish-docker-cli +publish-docker-cli: + docker push $(IMAGE_REPOSITORY)/deepfence_package_scanner_cli:$(DF_IMG_TAG) .PHONY: docker-cli docker-cli: