Skip to content

Commit

Permalink
Added support for build and push package-scanner-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
akumars1 committed May 22, 2024
1 parent 2931619 commit f0867d2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ 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: package-scanner-cli
package-scanner-cli:
docker build -t $(IMAGE_REPOSITORY)/deepfence_package_scanner_cli:$(DF_IMG_TAG) .

.PHONY: publish-packagescanner-cli
publish-packagescanner-cli:
docker push $(IMAGE_REPOSITORY)/deepfence_package_scanner_cli:$(DF_IMG_TAG)

.PHONY: docker-cli
docker-cli:
Expand Down

0 comments on commit f0867d2

Please sign in to comment.