Skip to content

Commit

Permalink
Merge pull request #46 from codacy/withtools-jdk-17
Browse files Browse the repository at this point in the history
feature: Publish withtools image for jdk 17
  • Loading branch information
lolgab authored Nov 5, 2024
2 parents a7d7c36 + 43727e6 commit ee4f995
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@ docker_build: ## build the docker image

docker build --build-arg base_image=$(BASE_IMAGE_OPENJDK) --no-cache -t $(WITHTOOLS_IMAGE_NAME):$(VERSION) --target withtools .
docker build --build-arg base_image=$(BASE_IMAGE_OPENJ9) --no-cache -t $(WITHTOOLS_IMAGE_NAME):$(OPENJ9_VERSION) --target withtools .
docker build --build-arg base_image=$(BASE_IMAGE_OPENJDK17) --no-cache -t $(WITHTOOLS_IMAGE_NAME):$(OPENJDK17_VERSION) --target withtools .

docker_scan: ## scan the docker image for security vulnerabilities
docker scan --accept-license --login --token $(DOCKER_SCAN_SNYK_TOKEN) &&\
@@ -25,6 +26,7 @@ docker_scan: ## scan the docker image for security vulnerabilities
docker scan --accept-license --severity high $(BASE_IMAGE_NAME):$(OPENJDK17_VERSION)
docker scan --accept-license --severity high $(WITHTOOLS_IMAGE_NAME):$(VERSION)
docker scan --accept-license --severity high $(WITHTOOLS_IMAGE_NAME):$(OPENJ9_VERSION)
docker scan --accept-license --severity high $(WITHTOOLS_IMAGE_NAME):$(OPENJDK17_VERSION)

.PHONY: push-docker-image
push-docker-image: ## push the docker image to the registry (DOCKER_USER and DOCKER_PASS mandatory)
@@ -34,6 +36,7 @@ push-docker-image: ## push the docker image to the registry (DOCKER_USER and DOC
docker push $(BASE_IMAGE_NAME):$(OPENJDK17_VERSION)
docker push $(WITHTOOLS_IMAGE_NAME):$(VERSION)
docker push $(WITHTOOLS_IMAGE_NAME):$(OPENJ9_VERSION)
docker push $(WITHTOOLS_IMAGE_NAME):$(OPENJDK17_VERSION)

.PHONY: push-latest-docker-image
push-latest-docker-image: ## push the docker image with the "latest" tag to the registry (DOCKER_USER and DOCKER_PASS mandatory)

0 comments on commit ee4f995

Please sign in to comment.