Skip to content

Commit 26e797a

Browse files
authored
Merge pull request #153 from kjiyun/main
#150 Feat: 공통 CI/CD pipeline 적용
2 parents 30c483e + 58ad3b6 commit 26e797a

File tree

4 files changed

+37
-81
lines changed

4 files changed

+37
-81
lines changed

.github/workflows/cd.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Spring Boot & Gradle CD
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
cd:
9+
uses: kjiyun/CI-CD-pipeline-standard/.github/workflows/java-gradle-cd.yml@master
10+
with:
11+
java-version: "17"
12+
distribution: "temurin"
13+
image-name: memesphere-app
14+
secrets:
15+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
16+
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
17+
HOST_ID: ${{ secrets.EC2_HOST }}
18+
USERNAME: ${{ secrets.EC2_USERNAME }}
19+
PRIVATE_KEY: ${{ secrets.EC2_SSH_KEY }}

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Spring Boot & Gradle CI
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
ci:
9+
uses: kjiyun/CI-CD-pipeline-standard/.github/workflows/java-gradle-ci.yml@master
10+
with:
11+
java-version: "17"
12+
distribution: "temurin"
13+
build-command: "false"
14+
test-command: "false"
15+
upload-artifacts: true
16+
write-application-yml: true
17+
secrets:
18+
APPLICATION: ${{ secrets.APPLICATION_YML }}

.github/workflows/deploy.yml

Lines changed: 0 additions & 78 deletions
This file was deleted.

src/test/java/com/memesphere/MemesphereApplicationTests.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,5 @@
66
@SpringBootTest
77
class MemesphereApplicationTests {
88

9-
@Test
10-
void contextLoads() {
11-
}
129

1310
}

0 commit comments

Comments
 (0)