Skip to content

Commit

Permalink
Merge pull request #36 from czi-catalystproject/fix-helper
Browse files Browse the repository at this point in the history
Fix helper script
  • Loading branch information
jnywong authored Feb 14, 2024
2 parents ca06781 + c3a1d11 commit b445099
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
# Helper shell script to update exercise in episodes/manage_images.md with the latest handbook-authoring-image tag.

FILE=${PWD}"/episodes/manage_images.md"
sed -i 's/LATEST/'$1'/g' $FILE
TAG=`curl -s -H "Authorization: Bearer "$1"" -X GET "https://quay.io/api/v1/repository/2i2c/handbook-authoring-image/tag/" | grep -Eo '"name": *"[^"]*"' | head -1 | awk '{ print $2 }' | tr -d \"`
sed -i 's/LATEST/'${TAG}'/g' ${FILE}

0 comments on commit b445099

Please sign in to comment.