File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 6464 push : true
6565 tags : |
6666 ${{ secrets.DOCKER_HUB_USERNAME }}/frontend-aws-integration:v1.0.${{ github.run_number }}
67+
68+ # --- AWS ECR Public Login + Push ---
69+ - name : Configure AWS credentials
70+ uses : aws-actions/configure-aws-credentials@v4
71+ with :
72+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
73+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
74+ aws-region : us-east-1
75+
76+ - name : Login to Amazon ECR Public
77+ uses : aws-actions/amazon-ecr-login@v2
78+ with :
79+ registry-type : public
80+
81+ - name : Tag and push to ECR Public
82+ run : |
83+ IMAGE_TAG=v1.0.${{ github.run_number }}
84+ ECR_URI=public.ecr.aws/d9h7a7q0/saadsabahuddin/public-repo
85+ docker tag ${{ secrets.DOCKER_HUB_USERNAME }}/frontend-aws-integration:$IMAGE_TAG $ECR_URI:$IMAGE_TAG
86+ docker push $ECR_URI:$IMAGE_TAG
You can’t perform that action at this time.
0 commit comments