File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Java CI Pipeline
2+
3+ on :
4+ push :
5+ branches : ["main"]
6+ pull_request :
7+ branches : ["main"]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout source code
15+ uses : actions/checkout@v4
16+
17+ - name : Set up JDK 21
18+ uses : actions/setup-java@v4
19+ with :
20+ distribution : temurin
21+ java-version : 21
22+ cache : maven
23+
24+ - name : Build and run tests
25+ run : mvn clean verify
26+
27+ - name : Package application
28+ run : mvn clean package -DskipTests
29+
30+ docker-build :
31+ needs : build
32+ runs-on : ubuntu-latest
33+
34+ steps :
35+ - uses : actions/checkout@v4
36+
37+ - name : Build Docker image
38+ run : docker build -t contact-api
Original file line number Diff line number Diff line change 33 url : ${DB_URL:?DB_URL is required}
44 username : ${DB_USERNAME:?DB_USERNAME is required}
55 password : ${DB_PASSWORD:?DB_PASSWORD is required}
6+ driver-class-name : org.postgresql.Driver
67
78 jpa :
89 hibernate :
You can’t perform that action at this time.
0 commit comments