diff --git a/.github/workflows/test-workflow.yml b/.github/workflows/test-workflow.yml index 9c3bd407f..c10943653 100644 --- a/.github/workflows/test-workflow.yml +++ b/.github/workflows/test-workflow.yml @@ -37,7 +37,7 @@ jobs: - name: Deploy Amazon ECS task definition With Wait For Task Stopped Being False uses: aws-actions/amazon-ecs-deploy-task-definition@1a69daea10712415b65b5c90f8c41b1b6b556ab5 with: - task-definition: task-definition-run-task.json + task-definition: ${{ env.ECS_TASK_DEFINITION_RUN_TASK }} cluster: ${{ env.ECS_CLUSTER }} run-task: true run-task-subnets: subnet-e5604fce, subnet-fe9355b4, subnet-c49431bc, subnet-392f9b64 @@ -49,7 +49,7 @@ jobs: - name: Deploy Amazon ECS task definition With Wait For Task Stopped Being True uses: aws-actions/amazon-ecs-deploy-task-definition@1a69daea10712415b65b5c90f8c41b1b6b556ab5 with: - task-definition: task-definition-run-task.json + task-definition: ${{ env.ECS_TASK_DEFINITION_RUN_TASK }} cluster: ${{ env.ECS_CLUSTER }} run-task: true run-task-subnets: subnet-e5604fce, subnet-fe9355b4, subnet-c49431bc, subnet-392f9b64 @@ -61,7 +61,7 @@ jobs: - name: Deploy Amazon ECS task definition uses: aws-actions/amazon-ecs-deploy-task-definition@1a69daea10712415b65b5c90f8c41b1b6b556ab5 with: - task-definition: task-definition.json + task-definition: ${{ env.ECS_TASK_DEFINITION }} service: ${{ env.ECS_SERVICE }} cluster: ${{ env.ECS_CLUSTER }} wait-for-service-stability: true \ No newline at end of file diff --git a/test-workflow.yml b/test-workflow.yml index 8985ac14e..9d7acce51 100644 --- a/test-workflow.yml +++ b/test-workflow.yml @@ -3,6 +3,15 @@ on: branches: - integ-tests +env: + AWS_REGION: us-west-2 + ECR_REPOSITORY: cdk-hnb659fds-container-assets-708414441733-us-west-2 + ECS_SERVICE: github-actions-deploy-task-def-integ-test + ECS_CLUSTER: github-actions-deploy-task-def-integ-test + ECS_TASK_DEFINITION: task-definition.json + ECS_TASK_DEFINITION_RUN_TASK: task-definition-run-task.json + CONTAINER_NAME: web + name: Integration Test jobs: @@ -28,7 +37,7 @@ jobs: - name: Deploy Amazon ECS task definition With Wait For Task Stopped Being False uses: aws-actions/amazon-ecs-deploy-task-definition@v1 with: - task-definition: task-definition-run-task.json + task-definition: ${{ env.ECS_TASK_DEFINITION_RUN_TASK }} cluster: ${{ env.ECS_CLUSTER }} run-task: true run-task-subnets: subnet-e5604fce, subnet-fe9355b4, subnet-c49431bc, subnet-392f9b64 @@ -40,7 +49,7 @@ jobs: - name: Deploy Amazon ECS task definition With Wait For Task Stopped Being True uses: aws-actions/amazon-ecs-deploy-task-definition@v1 with: - task-definition: task-definition-run-task.json + task-definition: ${{ env.ECS_TASK_DEFINITION_RUN_TASK }} cluster: ${{ env.ECS_CLUSTER }} run-task: true run-task-subnets: subnet-e5604fce, subnet-fe9355b4, subnet-c49431bc, subnet-392f9b64 @@ -52,7 +61,7 @@ jobs: - name: Deploy Amazon ECS task definition uses: aws-actions/amazon-ecs-deploy-task-definition@v1 with: - task-definition: task-definition.json + task-definition: ${{ env.ECS_TASK_DEFINITION }} service: ${{ env.ECS_SERVICE }} cluster: ${{ env.ECS_CLUSTER }} wait-for-service-stability: true