Skip to content

Github Actions for building spring boot jar and pushing it to docker hub

Notifications You must be signed in to change notification settings

1strebel/spring-boot-github-actions

Repository files navigation

Super-Linter

Github Actions training

Simple Spring Boot application with one controller, designed to demonstrate the capabilities of Github Actions.

What these actions do:

1. Maven build, integration tests, CVE scan, push to the Docker Hub (.github/workflows/maven-docker-push.yml)

2. Run Super-Linter for Java codebase (.github/workflows/super-linter.yml)

To test the functionality of the application locally, you can run image from the Docker Hub:

 docker container run -d -p 8080:8080 keyfgl/spring-boot-github-actions     
 curl -v localhost:8080/home

or use files for kubernetes local deployment in /local:

kubectl apply -f kubernetes-local.yaml
kubectl exec deploy/myapp -- curl --fail http://localhost:8080/actuator/health

or use files for docker local deployment in /local:

docker compose -f docker-compose.test.yml up --exit-code-from check

About

Github Actions for building spring boot jar and pushing it to docker hub

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 2

  •  
  •