Skip to content

Commit 14a3f5a

Browse files
committed
chore: jar 파일 경로 수정2
1 parent e2a0b72 commit 14a3f5a

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,18 @@ jobs:
2626
- name: Build with Gradle
2727
run: chmod +x ./gradlew && ./gradlew bootjar
2828

29-
# 4) JAR 파일 이름 변경
30-
- name: Rename JAR file
31-
run: |
32-
mv build/libs/*-SNAPSHOT.jar build/libs/app.jar
33-
34-
# 5) JAR를 EC2로 복사
29+
# 4) JAR를 EC2로 복사
3530
- name: Copy jar to EC2
3631
uses: appleboy/scp-action@v0.1.7
3732
with:
3833
host: ${{ secrets.EC2_HOST }}
3934
username: ${{ secrets.EC2_USER }}
4035
key: ${{ secrets.EC2_SSH_KEY }}
41-
source: "build/libs/app.jar"
42-
target: "/home/ubuntu/app"
36+
source: "build/libs/*.jar"
37+
target: "/home/ubuntu/app/app.jar"
4338
overwrite: true
4439

45-
# 6) EC2에서 앱 재시작
40+
# 5) EC2에서 앱 재시작
4641
- name: Restart Spring Boot app on EC2
4742
uses: appleboy/ssh-action@v1.0.3
4843
with:

0 commit comments

Comments
 (0)