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 cee5207 commit daaf78f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/aws-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ env:
REGISTRY: "docker.io"
NAMESPACE: "clean01"
IMAGE_NAME: "layer-server"
AWS_PROD_INSTANCE_HOST: ${{ secrets.AWS_PROD_INSTANCE_HOST }}
AWS_DEV_INSTANCE_HOST: ${{ secrets.AWS_DEV_INSTANCE_HOST }}
PROD_INSTANCE_HOST: ${{ secrets.AWS_PROD_INSTANCE_HOST }}
DEV_INSTANCE_HOST: ${{ secrets.AWS_DEV_INSTANCE_HOST }}

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

steps:
- name: Debug Environment Variables
run: |
echo "HOST_IP: ${{ env.DEV_INSTANCE_HOST }}"
- name: Setup Env
id: set-env
run: |
if [[ "${GITHUB_REF}" == "refs/heads/main" ]]; then
echo "DEPLOY_TARGET=production" >> $GITHUB_OUTPUT
echo "HOST_IP=prod_test" >> $GITHUB_OUTPUT
echo "HOST_IP=${{ env.PROD_INSTANCE_HOST }}" >> $GITHUB_OUTPUT
else
echo "DEPLOY_TARGET=development" >> $GITHUB_OUTPUT
echo "HOST_IP=dev_test" >> $GITHUB_OUTPUT
echo "HOST_IP=${{ env.DEV_INSTANCE_HOST }}" >> $GITHUB_OUTPUT
fi
build:
Expand Down

0 comments on commit daaf78f

Please sign in to comment.