Skip to content

Commit

Permalink
Deploy: Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
singingsandhill authored Nov 13, 2024
1 parent 2debae8 commit b1462a4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ jobs:
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew clean build -x test
run: ./gradlew clean bootJar

# 빌드된 JAR 파일 확인
- name: List build directory
run: ls -la build/libs

# EC2 서버에 SSH 접속하기 위한 키 파일 생성
- name: Create SSH Directory
Expand All @@ -41,6 +45,9 @@ jobs:
run: |
# SSH 연결시 호스트 키 검증 건너뛰기
echo "StrictHostKeyChecking no" >> ~/.ssh/config
# JAR 파일 전송 전 디렉토리 생성
ssh -i ~/.ssh/key.pem ${{ secrets.AWS_USERNAME }}@${{ secrets.AWS_HOST }} "mkdir -p ~/blueprint/build/libs"
# EC2로 JAR 파일 전송
scp -i ~/.ssh/key.pem \
Expand Down

0 comments on commit b1462a4

Please sign in to comment.