File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -78,14 +78,17 @@ jobs:
7878 runs-on : ubuntu-latest
7979 environment : develop
8080 needs : terraform-apply-dev
81- env :
82- ECR_REPOSITORY : ${{ fromJSON(needs.terraform-apply-dev.outputs.tf_outputs_json).ecr_repository_name.value }}
83- ECS_CLUSTER : ${{ fromJSON(needs.terraform-apply-dev.outputs.tf_outputs_json).ecs_cluster_name.value }}
84- ECS_SERVICE : ${{ fromJSON(needs.terraform-apply-dev.outputs.tf_outputs_json).ecs_service_name.value }}
85- CONTAINER_NAME : ${{ fromJSON(needs.terraform-apply-dev.outputs.tf_outputs_json).container_name.value }}
8681 steps :
8782 - uses : actions/checkout@v4
8883
84+ - name : Parse Terraform Outputs and Set Environment Variables
85+ run : |
86+ TF_OUTPUTS='${{ needs.terraform-apply-dev.outputs.tf_outputs_json }}'
87+ echo "ECR_REPOSITORY=$(echo "$TF_OUTPUTS" | jq -r '.ecr_repository_name.value')" >> $GITHUB_ENV
88+ echo "ECS_CLUSTER=$(echo "$TF_OUTPUTS" | jq -r '.ecs_cluster_name.value')" >> $GITHUB_ENV
89+ echo "ECS_SERVICE=$(echo "$TF_OUTPUTS" | jq -r '.ecs_service_name.value')" >> $GITHUB_ENV
90+ echo "CONTAINER_NAME=$(echo "$TF_OUTPUTS" | jq -r '.container_name.value')" >> $GITHUB_ENV
91+
8992 - name : Configure AWS credentials
9093 uses : aws-actions/configure-aws-credentials@v4
9194 with :
@@ -179,4 +182,3 @@ jobs:
179182 -X POST \
180183 -d "{\"content\": \"❌ (개발 서버) 배포 실패!\n레포: ${GITHUB_REPOSITORY}\n브랜치: ${GITHUB_REF}\n버전: ${SEMANTIC_VERSION}\"}" \
181184 ${{ secrets.DISCORD_WEBHOOK_URL }}
182-
You can’t perform that action at this time.
0 commit comments