Skip to content

mehmetmgrsl/maven-cicd-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

./mvnw clean package

./mvnw spring-boot:run

or

docker build -t maven-demo .

docker run -p 8080:8080 maven-demo

http://localhost:8080/test

CI/CD using GitHub Actions

This GitHub Actions workflow (on main branch):

  • sets up an environment with JDK 11,
  • builds a Java application using Maven,
  • creates a JAR file,
  • uploads it as an artifact,
  • retrieves the latest Docker image version from the private GitHub Container Registry,
  • increments the version based on a VARIABLE on GITHUB,
  • then builds and pushes a Docker image to the private GitHub Container Registry.

Preconditions

Resources:

  1. https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs
  2. https://github.com/actions/upload-artifact
  3. https://github.com/actions/download-artifact
  4. GitHub Actions Tutorial - Basic Concepts and CI/CD Pipeline with Docker
  5. Using outputs from a reusable workflow

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published