File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,17 +45,17 @@ jobs:
4545 - name : Build, tag, and push image to Amazon ECR
4646 id : build-image
4747 env :
48+ ECR_REGISTRY : ${{ steps.login-ecr.outputs.registry }}
4849 IMAGE_TAG : ${{ github.sha }}
4950 run : |
50- # Build a docker container and
51- # push it to ECR so that it can
52- # be deployed to ECS.
51+ # Build a docker container and push it to ECR
5352 aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 058264122535.dkr.ecr.us-east-1.amazonaws.com
5453 docker buildx build \
5554 --platform linux/amd64 \
5655 --push \
5756 -t 058264122535.dkr.ecr.us-east-1.amazonaws.com/ponder/indexer:latest \
5857 .
58+ echo "image=058264122535.dkr.ecr.us-east-1.amazonaws.com/ponder/indexer:latest" >> $GITHUB_OUTPUT
5959
6060 - name : Fill in the new image ID in the Amazon ECS task definition
6161 id : task-def
You can’t perform that action at this time.
0 commit comments