Skip to content

Commit 5c93cb4

Browse files
authored
Updates to AWS ECS deploy guide (#3002)
1 parent f1582f0 commit 5c93cb4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/actions/guides/deploying-to-amazon-elastic-container-service.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
with:
108108
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
109109
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
110-
aws-region: $AWS_REGION
110+
aws-region: ${{ env.AWS_REGION }}
111111
112112
- name: Login to Amazon ECR
113113
id: login-ecr
@@ -124,22 +124,22 @@ jobs:
124124
# be deployed to ECS.
125125
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
126126
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"
128128
129129
- name: Fill in the new image ID in the Amazon ECS task definition
130130
id: task-def
131131
uses: aws-actions/amazon-ecs-render-task-definition@v1
132132
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 }}
135135
image: ${{ steps.build-image.outputs.image }}
136136
137137
- name: Deploy Amazon ECS task definition
138138
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
139139
with:
140140
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 }}
143143
wait-for-service-stability: true
144144
```
145145
{% endraw %}

0 commit comments

Comments
 (0)