From 78f6734a03aca904d7fe2288585829c0cb01b401 Mon Sep 17 00:00:00 2001 From: minsuKang <90169703+minchodang@users.noreply.github.com> Date: Sun, 19 May 2024 18:39:22 +0900 Subject: [PATCH] Fix/env2 (#27) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix: 환경변수명 수정 * Fix: yaml 파일 작업 삭제 --- .github/workflows/deploy-develop.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/deploy-develop.yml b/.github/workflows/deploy-develop.yml index ce92bf2..addf2c8 100644 --- a/.github/workflows/deploy-develop.yml +++ b/.github/workflows/deploy-develop.yml @@ -10,9 +10,6 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Get Github Actions IP - id: ip - uses: haythem/public-ip@v1.3 - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v2 @@ -21,10 +18,6 @@ jobs: aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: ap-northeast-2 - - name: Add Github Actions IP to Security group - run: | - aws ec2 authorize-security-group-ingress --group-id ${{ secrets.AWS_SG_ID }} --protocol tcp --port 22 --cidr ${{ steps.ip.outputs.ipv4 }}/32 - - name: Checkout code uses: actions/checkout@v2 @@ -78,6 +71,3 @@ jobs: HOST: ${{ secrets.EC2_HOST }} SSH_KEY: ${{ secrets.EC2_SSH_KEY }} - - name: Remove Github Actions IP From Security Group - run: | - aws ec2 revoke-security-group-ingress --group-id ${{ secrets.AWS_SG_ID }} --protocol tcp --port 22 --cidr ${{ steps.ip.outputs.ipv4 }}/32