Skip to content

Commit 74f95c7

Browse files
amish kohliamish kohli
authored andcommitted
ecs ci/cd
1 parent 3462c29 commit 74f95c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/aws.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,20 @@ jobs:
4848
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
4949
IMAGE_TAG: ${{ github.sha }}
5050
run: |
51+
# Login to ECR
5152
aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 058264122535.dkr.ecr.us-east-1.amazonaws.com
5253
53-
# Build with tag and build args
54+
# Build and push
5455
docker buildx build \
5556
--platform linux/amd64 \
5657
--build-arg SUPABASE_URL=${{ secrets.SUPABASE_URL }} \
5758
--build-arg SUPABASE_ANON_KEY=${{ secrets.SUPABASE_ANON_KEY }} \
5859
--push \
5960
-t 058264122535.dkr.ecr.us-east-1.amazonaws.com/ponder/indexer:latest \
6061
.
62+
63+
# Set the image output using the new GitHub Actions syntax
64+
echo "image=058264122535.dkr.ecr.us-east-1.amazonaws.com/ponder/indexer:latest" >> $GITHUB_OUTPUT
6165
6266
- name: Download task definition
6367
run: |

0 commit comments

Comments
 (0)