@@ -107,7 +107,7 @@ jobs:
107
107
with:
108
108
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
109
109
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
110
- aws-region: $AWS_REGION
110
+ aws-region: ${{ env. AWS_REGION }}
111
111
112
112
- name: Login to Amazon ECR
113
113
id: login-ecr
@@ -124,22 +124,22 @@ jobs:
124
124
# be deployed to ECS.
125
125
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
126
126
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
127
- echo "image= $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_ENV
127
+ echo "::set-output name=image:: $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG"
128
128
129
129
- name: Fill in the new image ID in the Amazon ECS task definition
130
130
id: task-def
131
131
uses: aws-actions/amazon-ecs-render-task-definition@v1
132
132
with:
133
- task-definition: $ECS_TASK_DEFINITION
134
- container-name: $CONTAINER_NAME
133
+ task-definition: ${{ env. ECS_TASK_DEFINITION }}
134
+ container-name: ${{ env. CONTAINER_NAME }}
135
135
image: ${{ steps.build-image.outputs.image }}
136
136
137
137
- name: Deploy Amazon ECS task definition
138
138
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
139
139
with:
140
140
task-definition: ${{ steps.task-def.outputs.task-definition }}
141
- service: $ECS_SERVICE
142
- cluster: $ECS_CLUSTER
141
+ service: ${{ env. ECS_SERVICE }}
142
+ cluster: ${{ env. ECS_CLUSTER }}
143
143
wait-for-service-stability: true
144
144
```
145
145
{% endraw %}
0 commit comments