You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2022/12/07 02:43:26 UTC

[GitHub] [bookkeeper] zymap commented on a diff in pull request #3658: Release apache/bookkeeper image with latest GH release for all platforms.

zymap commented on code in PR #3658:
URL: https://github.com/apache/bookkeeper/pull/3658#discussion_r1041696122


##########
docker/hooks/build:
##########
@@ -1,9 +1,13 @@
 #!/bin/bash
 set -x
-# When we build 'latest' tag we want to not override BK_VERSION variable
+# When we build 'latest' tag we want always get the latest released version
+
 if [[ "$DOCKER_TAG" = "latest" ]]
 then
-  docker build -t $IMAGE_NAME .
+  # GH API currently returns tags in the order they would be returned by the "git tag" command, which means they are alphabetically sorted.
+  # BK_RELEASE_VERSION points to the "highest" released version
+  BK_RELEASE_VERSION=`curl -s https://api.github.com/repos/apache/bookkeeper/tags | jq -r '.[0].name' | sed 's/release-\([0-9.]*\).*/\1/'`

Review Comment:
   @michaeljmarshall Does that make sense to you?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org