Skip to content

Commit

Permalink
ecs ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
amish kohli authored and amish kohli committed Dec 4, 2024
1 parent 3aebcea commit 33e7c6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ jobs:
- name: Build, tag, and push image to Amazon ECR
id: build-image
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
IMAGE_TAG: ${{ github.sha }}
run: |
# Build a docker container and
# push it to ECR so that it can
# be deployed to ECS.
# Build a docker container and push it to ECR
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 058264122535.dkr.ecr.us-east-1.amazonaws.com
docker buildx build \
--platform linux/amd64 \
--push \
-t 058264122535.dkr.ecr.us-east-1.amazonaws.com/ponder/indexer:latest \
.
echo "image=058264122535.dkr.ecr.us-east-1.amazonaws.com/ponder/indexer:latest" >> $GITHUB_OUTPUT
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def
Expand Down

0 comments on commit 33e7c6b

Please sign in to comment.