From 843a130d4b12f5bd773b692cc87d8e53b1992e38 Mon Sep 17 00:00:00 2001 From: Shilpa Setia Date: Tue, 20 May 2025 12:21:09 +0530 Subject: [PATCH 1/3] pushed new change --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1b5eb89..73f8f27 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Sysfoo Application -Hi, there! Applied first rule! +Hi, reviewer! Applied first rule! Please review! A Devops Learning App ## About the Application From 3e4f2f348803a0010af1f5df27f23264e2e163d1 Mon Sep 17 00:00:00 2001 From: Shilpa Setia Date: Wed, 21 May 2025 12:18:32 +0530 Subject: [PATCH 2/3] added multi stage docker file --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ac039e8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM maven:3.9.6-eclipse-temurin-17 AS build +WORKDIR /app +COPY . . +RUN mvn package -DskipTests +FROM eclipse-temurin:17-jre-noble as package +WORKDIR /app +COPY --from=build /app/target/sysfoo-*.jar ./sysfoo.jar +EXPOSE 8080 +ENTRYPOINT ["java", "-jar", "sysfoo.jar"] From ed43ed589f0c4536d2c64367359748cee47a3c86 Mon Sep 17 00:00:00 2001 From: Shilpa Setia Date: Thu, 22 May 2025 10:54:32 +0530 Subject: [PATCH 3/3] added github workflow --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6ca0068 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,14 @@ +name: CI Pipeline + +on: + push: + branches: + - main + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3