Skip to content

Commit

Permalink
Update deployment_scp.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
202002536JHLee authored Apr 15, 2024
1 parent f283a89 commit 65fe887
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deployment_scp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
- name: Send jar to remote server
uses: appleboy/scp-action@master
with:
host: {나의 public ip}
username: {나의 userName}
host: 34.64.41.182
username: earlylee2
source: "devlog_springboot-0.0.1-SNAPSHOT.jar"
target: "/home/{나의 userName}"
key: ${{ secrets.PRIVATE_KEY }}
Expand All @@ -61,16 +61,16 @@ jobs:
- name: Move deploy.sh
uses: appleboy/scp-action@master
with:
host: {나의 public ip}
username: {나의 userName}
host: 34.64.41.182
username: earlylee2
source: "deploy.sh"
target: "/home/{나의 userName}"
key: ${{ secrets.PRIVATE_KEY }}
- name: Execute script
uses: appleboy/ssh-action@master
with:
username: {나의 userName}
host: {나의 public ip}
username: earlylee2
host: 34.64.41.182
key: ${{ secrets.PRIVATE_KEY }}
script_stop: true
script: cd /home/{나의 userName} && chmod +x deploy.sh && ./deploy.sh

0 comments on commit 65fe887

Please sign in to comment.