Skip to content

Commit

Permalink
add code deploy 2
Browse files Browse the repository at this point in the history
  • Loading branch information
redcarrot1 committed Sep 1, 2024
1 parent 81e322a commit 49a42c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/server2-cd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Spring Code deploy(home)
name: Spring Code deploy 2

on:
workflow_dispatch:
Expand Down Expand Up @@ -53,11 +53,11 @@ jobs:
run: ./gradlew clean build

- name: Deliver JAR File
uses: appleboy/scp-action@v0.1.7
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SSH_HOST2 }}
username: ${{ secrets.SSH_USERNAME2 }}
password: ${{ secrets.SSH_PASSWORD2 }}
key: ${{ secrets.SSH_PRVATE_KEY2 }}
port: ${{ secrets.SSH_PORT2 }}
source: "build/libs/*.jar"
target: "source"
Expand All @@ -68,7 +68,7 @@ jobs:
with:
host: ${{ secrets.SSH_HOST2 }}
username: ${{ secrets.SSH_USERNAME2 }}
password: ${{ secrets.SSH_PASSWORD2 }}
key: ${{ secrets.SSH_PRVATE_KEY2 }}
port: ${{ secrets.SSH_PORT2 }}
script: |
SOURCE_DIR=source/build/libs
Expand Down

0 comments on commit 49a42c5

Please sign in to comment.