Skip to content

Commit

Permalink
fix: deploy AWS ECS
Browse files Browse the repository at this point in the history
  • Loading branch information
brunosduarte committed Apr 29, 2024
1 parent 816e64d commit f374216
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,13 @@
# version_label: ${{ github.sha }}
# region: us-east-1
# deployment_package: deploy.zip


aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws/r8b6j1v6


docker build -t ${{ vars.ECR_REPOSITORY }}:${{ github.sha }} .
docker tag site-mapper-12:latest public.ecr.aws/r8b6j1v6/site-mapper-12:latest

docker push public.ecr.aws/r8b6j1v6/site-mapper-12:latest
docker push ${{ vars.ECR_REPOSITORY_URI }}:${{ github.sha }}
5 changes: 3 additions & 2 deletions .github/workflows/deploy-aws-ecs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ jobs:
- name: Build, tag, and push image to Amazon ECR
run: |
cd server
docker build -t ${{ vars.ECR_REPOSITORY }}:${{ github.sha }} .
docker push ${{ vars.ECR_REPOSITORY_URI }}:${{ github.sha }}
docker build -t site-mapper .
docker tag site-mapper:latest public.ecr.aws/r8b6j1v6/site-mapper:latest
docker push public.ecr.aws/r8b6j1v6/site-mapper:latest
- name: Fill in the new image ID in the ECS task definition
id: latest
Expand Down

1 comment on commit f374216

@vercel
Copy link

@vercel vercel bot commented on f374216 Apr 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.