Skip to content

Commit

Permalink
feat(update) update pinned kbt version
Browse files Browse the repository at this point in the history
  • Loading branch information
gszr committed Dec 8, 2020
1 parent 70413eb commit e95081f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ function die() {

hub --version &> /dev/null || die "hub is not in PATH. Get it from https://github.com/github/hub"

kbt_in_kong_v=$(curl -sL https://raw.githubusercontent.com/Kong/kong/$version/Makefile | grep 'KONG_BUILD_TOOLS\s*?=' | awk -F"=" '{print $2}' | tr -d "'[:space:]")
sed -i -e 's/KONG_BUILD_TOOLS?=.*/KONG_BUILD_TOOLS?='$kbt_in_kong_v'/g' Makefile

pushd alpine
url=$(grep bintray.com Dockerfile | awk -F" " '{print $3}' | sed 's/\"//g' | sed 's/$KONG_VERSION/'$version'/g' | sed 's/$arch/'amd64'/g')
curl -fL $url -o /tmp/kong
Expand Down

0 comments on commit e95081f

Please sign in to comment.