Skip to content

Commit

Permalink
decreased steps as ecr login issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AbduRawoof committed Dec 19, 2024
1 parent 54ee614 commit 98575e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV
export NEW_IMAGE_URI="583275065488.dkr.ecr.us-east-2.amazonaws.com/catalog:$IMAGE_TAG"
echo "NEW_IMAGE_URI=$NEW_IMAGE_URI" >> $GITHUB_ENV
aws ecr get-login-password --region us-east-2 --profile tf_user | docker login --username AWS --password-stdin 583275065488.dkr.ecr.us-east-2.amazonaws.com
aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin 583275065488.dkr.ecr.us-east-2.amazonaws.com
sudo docker build --build-arg TOKEN=${{ secrets.TOKEN }} -f docker/Dockerfile -t test-catalog:$IMAGE_TAG .
sudo docker tag test-catalog:$IMAGE_TAG $NEW_IMAGE_URI
sudo docker push $NEW_IMAGE_URI
Expand Down

0 comments on commit 98575e3

Please sign in to comment.