This is a BoilerPlate Project that contains a Multistaged Dockerfile for dockerizing the spring boot app, also it has a Github Actions (CI/CD) .yaml file for automatially creating docker image on cloud and pushing it to registry.
docker build -t satyam7world/spring_boot_docker_github_action .
- Have a look at image_push.yml .
- Create repository secrets for dockerhub login.
- action will run on new push.
docker run -d -p 80:8080 --restart=always satyam7world/spring_boot_docker_github_action
For further reference, please consider the following sections:
- Official Gradle documentation
- Spring Boot Gradle Plugin Reference Guide
- Create an OCI image
- Spring Web
now. testing my webhook, that is why added this line