Skip to content

Commit cf65bd4

Browse files
Merge pull request #9 from vimal-tech-dev/feature/new-update-phase-6
github workflow created
2 parents 97ac7c4 + df02eeb commit cf65bd4

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

src/main/resources/application-prod.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ spring:
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:

0 commit comments

Comments
 (0)