Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release/2.0.4 #361

Merged
merged 12 commits into from
May 6, 2020
Merged
Prev Previous commit
Next Next commit
fix(update) adjust so the update script is ubuntu compatible
  • Loading branch information
hutchic committed May 6, 2020
commit d854e81e33d9c78bfd5b31de3e5d430e85abc1c1
7 changes: 1 addition & 6 deletions update.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -ex
set -e

if ! [ "$1" ]
then
Expand Down Expand Up @@ -57,11 +57,6 @@ pushd rhel
popd

pushd ubuntu
url=$(grep bintray.com Dockerfile | awk -F" " '{print $3}' | sed 's/\"//g' | sed 's/$KONG_VERSION/'$version'/g')
curl -fL $url -o /tmp/kong
new_sha=$(sha256sum /tmp/kong | cut -b1-64)

sed -i -e 's/ARG KONG_SHA256=.*/ARG KONG_SHA256=\"'$new_sha'\"/g' Dockerfile
sed -i -e 's/ARG KONG_VERSION=.*/ARG KONG_VERSION='$version'/g' Dockerfile
popd

Expand Down