diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index c106d77..853dbb2 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -14,6 +14,9 @@ on: image-url: required: true type: string + environment: + required: true + type: string secrets: AWS_ASSUME_ROLE_ARN: required: true @@ -23,6 +26,7 @@ on: required: true jobs: deploy: + environment: ${{ inputs.environment }} runs-on: [ ubuntu-latest ] name: ECS 배포하기 diff --git a/.github/workflows/prod.yaml b/.github/workflows/prod.yaml index 237178b..09be4ad 100644 --- a/.github/workflows/prod.yaml +++ b/.github/workflows/prod.yaml @@ -69,6 +69,7 @@ jobs: id-token: write contents: read with: + environment: production ecs-service: ${{ needs.prepare-variables.outputs.ecs-service }} ecs-cluster: ${{ needs.prepare-variables.outputs.ecs-cluster }} ecr-task-definition: ${{ needs.prepare-variables.outputs.ecr-task-definition }}