Skip to content

Commit b0e5a39

Browse files
authored
Merge pull request #124 from Crew-Wiki/feat/117
feat: job 수정 및 bootJar 빌드 방식으로 수정
2 parents fa3e183 + 1fec7aa commit b0e5a39

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/dev-cd.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- "**"
88

99
jobs:
10-
build:
10+
build-and-push:
1111
runs-on: ubuntu-24.04
1212
steps:
1313
- name: Checkout source
@@ -25,14 +25,7 @@ jobs:
2525
cache-read-only: false
2626

2727
- name: Build project
28-
run: ./gradlew clean build
29-
30-
push:
31-
needs: build
32-
runs-on: ubuntu-24.04
33-
steps:
34-
- name: Checkout source
35-
uses: actions/checkout@v4
28+
run: ./gradlew clean bootJar
3629

3730
- name: Login to Docker Hub
3831
uses: docker/login-action@v3
@@ -51,7 +44,7 @@ jobs:
5144
${{ secrets.DOCKERHUB_USERNAME }}/crew-wiki:${{ github.sha }}
5245
5346
deploy:
54-
needs: push
47+
needs: build-and-push
5548
runs-on: ubuntu-24.04
5649
steps:
5750
- name: Deploy to Server

0 commit comments

Comments
 (0)