From 379777543f2b79f80cad3f2a757f10f59ddcb83d Mon Sep 17 00:00:00 2001 From: Sejeong Kim Date: Thu, 2 Jan 2025 15:43:32 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20setup=20=ED=98=B8=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=95=84=EC=9D=B4=ED=94=BC=20=EC=84=A4=EC=A0=95=20=EB=B6=80?= =?UTF-8?q?=EB=B6=84=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/aws-cicd.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/aws-cicd.yml b/.github/workflows/aws-cicd.yml index 9d4410a1..2ff87947 100644 --- a/.github/workflows/aws-cicd.yml +++ b/.github/workflows/aws-cicd.yml @@ -25,14 +25,9 @@ jobs: permissions: contents: read packages: write - - env: - AWS_PROD_INSTANCE_HOST: ${{ secrets.AWS_PROD_INSTANCE_HOST }} - AWS_DEV_INSTANCE_HOST: ${{ secrets.AWS_DEV_INSTANCE_HOST }} - outputs: deploy_target: ${{ steps.set-env.outputs.DEPLOY_TARGET }} - host_ip: ${{ steps.set-env.outputs.INSTANCE }} # 이부분 + host_ip: ${{ steps.set-env.outputs.HOST_IP }} # 이부분 steps: - name: Setup Env @@ -40,10 +35,10 @@ jobs: run: | if [[ "${GITHUB_REF}" == "refs/heads/main" ]]; then echo "DEPLOY_TARGET=production" >> $GITHUB_OUTPUT - echo "INSTANCE=${{ env.AWS_PROD_INSTANCE_HOST }}" >> $GITHUB_OUTPUT + echo "HOST_IP='${{ env.AWS_PROD_INSTANCE_HOST }}'" >> $GITHUB_OUTPUT else echo "DEPLOY_TARGET=development" >> $GITHUB_OUTPUT - echo "INSTANCE=${{ env.AWS_DEV_INSTANCE_HOST }}" >> $GITHUB_OUTPUT + echo "HOST_IP='${{ env.AWS_DEV_INSTANCE_HOST }}'" >> $GITHUB_OUTPUT fi build: