Skip to content

Commit

Permalink
chore: setup 호스트 아이피 설정 부분 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
clean2001 committed Jan 2, 2025
1 parent 0364381 commit 3797775
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/aws-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,20 @@ 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
id: set-env
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:
Expand Down

0 comments on commit 3797775

Please sign in to comment.