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 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"] 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