diff --git a/.github/workflows/docker-ci.yml b/.github/workflows/docker-ci.yml index 0623770..e83d21c 100644 --- a/.github/workflows/docker-ci.yml +++ b/.github/workflows/docker-ci.yml @@ -40,6 +40,12 @@ jobs: title: "Unit Test Coverage Report" update-comment: true + - name: Generate Coverage Badge + uses: cicirello/jacoco-badge-generator@v2 + with: + generate-branches-badge: true + jacoco-csv-file: target/site/jacoco/jacoco.csv + # 5. Prepare Docker - name: Login to Docker Hub uses: docker/login-action@v3 diff --git a/README.md b/README.md index a1970d3..b63b9ad 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # ci-cd-docker-github Java CI/CD with Docker & GitHub Actions + +![Build Status](https://github.com/dhrubacb/ci-cd-docker-github/actions/workflows/docker-ci.yml/badge.svg) + +![Coverage](.github/badges/jacoco.svg) + This repository demonstrates a professional A-Z Dockerized workflow for a Java 25 application. It covers everything from multi-stage builds and internal networking to automated deployment pipelines. 🏗 Architecture Overview @@ -13,7 +18,6 @@ Orchestration: Docker Compose CI/CD: GitHub Actions + Docker Hub -![Build Status](https://github.com/dhrubacb/ci-cd-docker-github/actions/workflows/docker-ci.yml/badge.svg) 🛠 Features 1. Multi-Stage Dockerfile