Skip to content

Commit

Permalink
chore: 값 주입 방식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
clean2001 committed Jan 2, 2025
1 parent daaf78f commit 1e1d3ef
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/aws-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ env:
REGISTRY: "docker.io"
NAMESPACE: "clean01"
IMAGE_NAME: "layer-server"
PROD_INSTANCE_HOST: ${{ secrets.AWS_PROD_INSTANCE_HOST }}
DEV_INSTANCE_HOST: ${{ secrets.AWS_DEV_INSTANCE_HOST }}

jobs:
setup:
Expand All @@ -30,6 +28,14 @@ jobs:
host_ip: ${{ steps.set-env.outputs.HOST_IP }} # 이부분

steps:


# 추가한 부분
- name: Set Environment Variables
run: |
echo "PROD_INSTANCE_HOST=${{ secrets.AWS_PROD_INSTANCE_HOST }}" >> $GITHUB_ENV
echo "DEV_INSTANCE_HOST=${{ secrets.AWS_DEV_INSTANCE_HOST }}" >> $GITHUB_ENV
- name: Debug Environment Variables
run: |
echo "HOST_IP: ${{ env.DEV_INSTANCE_HOST }}"
Expand Down

0 comments on commit 1e1d3ef

Please sign in to comment.