Skip to content

Commit

Permalink
fix: server openssh 인증 허용
Browse files Browse the repository at this point in the history
  • Loading branch information
psychology50 committed Jan 25, 2024
1 parent 174d87b commit d35d1e6
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,26 +68,15 @@ 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: fifsky/ssh-action@master
uses: appleboy/ssh-action@v0.1.6
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 d35d1e6

Please sign in to comment.