Skip to content

Commit

Permalink
#64 [ENV] : 스크립트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hye-on committed Apr 19, 2024
1 parent 0e2ca2e commit 7a8b239
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/cicd_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,11 @@ jobs:
- name: Deploy
uses: appleboy/ssh-action@master
with:
REMOTE_HOST: ${{ secrets.EC2_HOST }}
REMOTE_USER: ${{ secrets.EC2_USERNAME }}
SSH_PRIVATE_KEY: ${{ secrets.EC2_SSH_KEY }}
REMOTE_PORT: 22
SOURCE: 'build/libs/${{env.FILE_NAME}}'
TARGET: '${{env.FILE_PATH}}'
SCRIPT_AFTER: |
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USERNAME }}
key: ${{ secrets.EC2_SSH_KEY }}
port: 22
script: |
SOURCE_DIR=source/build/libs
FILE_NAME: TogetUp-0.0.1-SNAPSHOT.jar
pid=$(ps aux | grep $FILE_NAME | grep -v grep | awk '{print $2}')
Expand Down

0 comments on commit 7a8b239

Please sign in to comment.