Skip to content

Commit 33e7c6b

Browse files
amish kohliamish kohli
authored andcommitted
ecs ci/cd
1 parent 3aebcea commit 33e7c6b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/aws.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)