From d69723d9449597fecceb143f2449274d3941ccf0 Mon Sep 17 00:00:00 2001 From: Satyam <58844449+satyam7world@users.noreply.github.com> Date: Mon, 25 Dec 2023 15:12:53 +0530 Subject: [PATCH] updated Readme.md --- Readme.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index 6f7d055..9a8079a 100644 --- a/Readme.md +++ b/Readme.md @@ -3,12 +3,20 @@ ## About this Project 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. -### Guides -* #### Local Build with Dockerfile +## Guides +* ### Local Build with Dockerfile + +``docker build -t satyam7world/spring_boot_docker_github_action .`` + +* ### With GitHub Actions +>1. Have a look at [image_push.yml](https://github.com/satyam7world/SpringBootDockerGithubAction/blob/master/.github/workflows/image_push.yml) . +>2. Create repository secrets for dockerhub login. +>3. action will run on new push. + +* ### Running the Spring Boot Rest Server (Docker). +1. ``docker run -d -p 80:8080 --restart=always satyam7world/spring_boot_docker_github_action`` -``docker build -t image_name .`` -* #### With Github Actions ### Reference Documentation