You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2020/07/07 09:24:07 UTC

[flink-docker] branch master updated: [FLINK-18506] Extract Flink version from URL

This is an automated email from the ASF dual-hosted git repository.

chesnay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-docker.git


The following commit(s) were added to refs/heads/master by this push:
     new c83ed2f  [FLINK-18506] Extract Flink version from URL
c83ed2f is described below

commit c83ed2f80d3a6ace36205ee92926eef2abbca244
Author: Chesnay Schepler <ch...@apache.org>
AuthorDate: Tue Jul 7 11:24:01 2020 +0200

    [FLINK-18506] Extract Flink version from URL
---
 generate-stackbrew-library.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/generate-stackbrew-library.sh b/generate-stackbrew-library.sh
index 965045c..c1f0d76 100755
--- a/generate-stackbrew-library.sh
+++ b/generate-stackbrew-library.sh
@@ -94,7 +94,8 @@ for scala_version in "${scala_versions[@]}"; do
     commit="$(dirCommit "$dir")"
 
     # Extract the full Flink version from the Dockerfile
-    flink_version="$(git show "$commit":"$dir/Dockerfile" | awk '/ENV FLINK_VERSION=(.*) /{ split($2,a,"="); print a[2]}')"
+    flink_version="$(git show "$commit":"$dir/Dockerfile" | grep 'dist/flink/flink-[0-9.]*' | cut -d/ -f6 | cut -d- -f2)"
+    echo $flink_version
 
     full_version=$flink_version-scala_$scala_version