Skip to content

Commit

Permalink
get latest blog image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sumi-k committed Sep 18, 2023
1 parent 1a65f44 commit 93576d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/deploy-ecr-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ IMAGE_ARN=$2

aws ecr get-login-password --region ap-south-1 | docker login --username AWS --password-stdin 569704406482.dkr.ecr.ap-south-1.amazonaws.com

imageTag = $(aws ecr describe-images --repository-name canopas-blog --output text --query 'sort_by(imageDetails,& imagePushedAt)[*].imageTags[*]' | tr '\t' '\n' | tail -1)
imageTag=$(aws ecr describe-images --repository-name canopas-blog --output text --query 'sort_by(imageDetails,& imagePushedAt)[*].imageTags[*]' | tr '\t' '\n' | tail -1)

echo $imageTag

Expand Down

0 comments on commit 93576d5

Please sign in to comment.