Skip to content

Commit 06cbd70

Browse files
authored
Merge pull request #1 from ssetia123/docker
changes for configuring agent at each stage
2 parents b20e4e4 + ed43ed5 commit 06cbd70

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: CI Pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM maven:3.9.6-eclipse-temurin-17 AS build
2+
WORKDIR /app
3+
COPY . .
4+
RUN mvn package -DskipTests
5+
FROM eclipse-temurin:17-jre-noble as package
6+
WORKDIR /app
7+
COPY --from=build /app/target/sysfoo-*.jar ./sysfoo.jar
8+
EXPOSE 8080
9+
ENTRYPOINT ["java", "-jar", "sysfoo.jar"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
# Sysfoo Application
3-
Hi, there! Applied first rule!
3+
Hi, reviewer! Applied first rule! Please review!
44
A Devops Learning App
55

66
## About the Application

0 commit comments

Comments
 (0)