From 767686ad2f39d852166e5e4735613acc566f3353 Mon Sep 17 00:00:00 2001 From: JaeSeo Yang <96044622+psychology50@users.noreply.github.com> Date: Thu, 25 Jan 2024 20:27:30 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20ncloud=20=EB=AA=85=EB=A0=B9=20=EC=8B=A4?= =?UTF-8?q?=ED=96=89=20=EC=A0=84=EC=97=90=20=EB=94=94=EB=A0=89=ED=86=A0?= =?UTF-8?q?=EB=A6=AC=20=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 6b1dd4cb..9e550ccc 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -58,12 +58,12 @@ jobs: run: | wget https://www.ncloud.com/api/support/download/5/65 unzip 65 - cd ./cli_linux mkdir ~/.ncloud echo -e "ncloud_access_key_id = ${{ secrets.NCP_ACCESS_KEY }}\nncloud_secret_access_key = ${{ secrets.NCP_SECRET_KEY }}\nncloud_api_url = ${{ secrets.NCP_API_URL }}" >> ~/.ncloud/configure - name: Add Github Action Ip to Security group run: | + 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 }}', portRange='${{ secrets.SSH_PORT }}'" - name: deploy @@ -79,4 +79,5 @@ jobs: - name: Remove Github Action Ip to Security group run: | + cd ~/cli_linux ./ncloud vserver removeAccessControlGroupInboundRule --regionCode KR --vpcNo ${{ secrets.NCP_VPC_NO }} --accessControlGroupNo ${{ secrets.NCP_AGC_NO }} --accessControlGroupRuleList "protocolTypeCode='TCP', ipBlock='${{ steps.ip.outputs.ipv4 }}', portRange='${{ secrets.SSH_PORT }}'" \ No newline at end of file