-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2cc7c5
commit 174d87b
Showing
1 changed file
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | | ||
|