We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2a0b72 commit 14a3f5aCopy full SHA for 14a3f5a
1 file changed
.github/workflows/deploy.yml
@@ -26,23 +26,18 @@ jobs:
26
- name: Build with Gradle
27
run: chmod +x ./gradlew && ./gradlew bootjar
28
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로 복사
+ # 4) JAR를 EC2로 복사
35
- name: Copy jar to EC2
36
uses: appleboy/scp-action@v0.1.7
37
with:
38
host: ${{ secrets.EC2_HOST }}
39
username: ${{ secrets.EC2_USER }}
40
key: ${{ secrets.EC2_SSH_KEY }}
41
- source: "build/libs/app.jar"
42
- target: "/home/ubuntu/app"
+ source: "build/libs/*.jar"
+ target: "/home/ubuntu/app/app.jar"
43
overwrite: true
44
45
- # 6) EC2에서 앱 재시작
+ # 5) EC2에서 앱 재시작
46
- name: Restart Spring Boot app on EC2
47
uses: appleboy/ssh-action@v1.0.3
48
0 commit comments