Skip to content

Commit

Permalink
fix: ssh action 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
psychology50 committed Jan 25, 2024
1 parent e2cc7c5 commit 174d87b
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,26 @@ jobs:
cd ~/cli_linux
./ncloud vserver addAccessControlGroupInboundRule --regionCode KR --vpcNo ${{ secrets.NCP_VPC_NO }} --accessControlGroupNo ${{ secrets.NCP_AGC_NO }} --accessControlGroupRuleList "protocolTypeCode='TCP', ipBlock='${{ steps.ip.outputs.ipv4 }}/32', portRange='${{ secrets.SSH_PORT }}'"
# - name: deploy
# uses: appleboy/[email protected]
# with:
# host: ${{ secrets.SSH_HOST }}
# port: ${{ secrets.SSH_PORT }}
# key: ${{ secrets.SSH_KEY }}
# username: ${{ secrets.SSH_USERNAME }}
# script: |
# ./start.sh

- name: deploy
uses: appleboy/ssh-action@v0.1.6
uses: fifsky/ssh-action@master
with:
command: |
whoami
./start.sh
host: ${{ secrets.SSH_HOST }}
port: ${{ secrets.SSH_PORT }}
user: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
username: ${{ secrets.SSH_USERNAME }}
script: |
./start.sh

- name: Remove Github Action Ip to Security group
run: |
Expand Down

0 comments on commit 174d87b

Please sign in to comment.