Skip to content

Commit b6ab800

Browse files
authored
Update ECR repository variable naming in workflow
1 parent e89e134 commit b6ab800

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/aws.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ on:
3333

3434
env:
3535
AWS_REGION: MY_AWS_REGION # set this to your preferred AWS region, e.g. us-west-1
36-
ecr_repository: MY_ECR_REPOSITORY # set this to your Amazon ECR repository name
36+
ECR_REPOSITORY: my_ecr_repository # set this to your Amazon ECR repository name
3737
ECS_SERVICE: MY_ECS_SERVICE # set this to your Amazon ECS service name
3838
ECS_CLUSTER: MY_ECS_CLUSTER # set this to your Amazon ECS cluster name
3939
ECS_TASK_DEFINITION: MY_ECS_TASK_DEFINITION # set this to the path to your Amazon ECS task definition
@@ -74,9 +74,9 @@ jobs:
7474
# Build a docker container and
7575
# push it to ECR so that it can
7676
# be deployed to ECS.
77-
docker build -t $ECR_REGISTRY/$ecr_repository:$IMAGE_TAG .
78-
docker push $ECR_REGISTRY/$ecr_repository:$IMAGE_TAG
79-
echo "image=$ECR_REGISTRY/$ecr_repository:$IMAGE_TAG" >> $GITHUB_OUTPUT
77+
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
78+
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
79+
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
8080
8181
- name: Fill in the new image ID in the Amazon ECS task definition
8282
id: task-def

0 commit comments

Comments
 (0)