Skip to content

Example Spring boot Kotlin project with multi staged dockerfile + github actions (build & push)

Notifications You must be signed in to change notification settings

satyam7world/SpringBootDockerGithubAction

Repository files navigation

Spring Boot Kotlin + Docker + Github Actions

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.

Guide

  • Local Build with Dockerfile

docker build -t satyam7world/spring_boot_docker_github_action .

  • With GitHub Actions

  1. Have a look at 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

Reference Documentation

For further reference, please consider the following sections:

now. testing my webhook, that is why added this line

About

Example Spring boot Kotlin project with multi staged dockerfile + github actions (build & push)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published