Skip to content

Commit

Permalink
chore: 배포 스크립트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kariskan committed Aug 22, 2024
1 parent dc1603d commit e075348
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:

- name: make application-secret.yml
run: |
cd ./Team6-Drive || exit 1
cd ./storage || exit 1
touch ./src/main/resources/application-secret.yml
echo "${{ secrets.SECRET }}" > ./src/main/resources/application-secret.yml
shell: bash

- name: Build with Gradle
run: |
cd ./Team6-Drive || exit 1
cd ./storage || exit 1
chmod +x gradlew
./gradlew build -x test
Expand All @@ -43,7 +43,7 @@ jobs:
SSH_HOST: ${{ secrets.HOST }}
SSH_PATH: ${{ secrets.PATH }}
run: |
scp -o StrictHostKeyChecking=no -i ssh_key.pem ./Team6-Drive/build/libs/*.jar $SSH_USER@$SSH_HOST:$SSH_PATH
scp -o StrictHostKeyChecking=no -i ssh_key.pem ./storage/build/libs/*.jar $SSH_USER@$SSH_HOST:$SSH_PATH
ssh -o StrictHostKeyChecking=no -i ssh_key.pem $SSH_USER@$SSH_HOST << EOF
cd $SSH_PATH
pkill -f '*.jar'
Expand Down

0 comments on commit e075348

Please sign in to comment.