From 174d87bb7c1ddc7adbc138d1f1634dd94d1e4dcb Mon Sep 17 00:00:00 2001 From: JaeSeo Yang <96044622+psychology50@users.noreply.github.com> Date: Thu, 25 Jan 2024 22:59:40 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20ssh=20action=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 4dc1e5bc..34bf5fd2 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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/ssh-action@v0.1.6 +# 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: |