Skip to content

Commit 89b76d2

Browse files
committed
Update oauth2-proxy version + clean buildpack
1 parent 0eb63a2 commit 89b76d2

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

bin/compile

100644100755
Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,27 @@
22

33
set -eo pipefail
44

5-
OAUTH2_PROXY_VERSION="v7.1.2"
6-
OAUTH2_PROXY_CHECKSUM="8a9c57d0b6c9dbb9b406923b8c9654c459ef85a608a44f10c998dfe0705a3379"
5+
OAUTH2_PROXY_VERSION="${OAUTH2_PROXY_VERSION:=v7.3.0}"
6+
OAUTH2_PROXY_CHECKSUM="5ebeaa616e22d941e2e4917879b81c25469546f339adafc2411f58c41ea5d151"
77

88
BP_DIR="$(cd $(dirname "$0"); pwd)"
99
BUILD_DIR="$1"
1010

11+
test -z "$tmp_dir" && tmp_dir="$(mktemp -d)"
12+
mkdir -p "${tmp_dir}"
13+
tmp_dir="${tmp_dir%/}"
14+
1115
mkdir -p "$BUILD_DIR/bin"
1216

1317
echo "downloading oauth2-proxy..."
14-
wget --no-verbose "https://github.com/oauth2-proxy/oauth2-proxy/releases/download/${OAUTH2_PROXY_VERSION}/oauth2-proxy-${OAUTH2_PROXY_VERSION}.linux-amd64.tar.gz" -O oauth2-proxy.tar.gz
15-
echo "$OAUTH2_PROXY_CHECKSUM oauth2-proxy.tar.gz" | sha256sum -c -
16-
tar -xzf oauth2-proxy.tar.gz -C "$BUILD_DIR/bin" --strip-components=1
17-
rm oauth2-proxy.tar.gz
18+
wget --no-verbose "https://github.com/oauth2-proxy/oauth2-proxy/releases/download/${OAUTH2_PROXY_VERSION}/oauth2-proxy-${OAUTH2_PROXY_VERSION}.linux-amd64.tar.gz" -O $tmp_dir/oauth2-proxy.tar.gz
19+
tar -xzf $tmp_dir/oauth2-proxy.tar.gz -C "$BUILD_DIR/bin" --strip-components=1
20+
21+
echo "$OAUTH2_PROXY_CHECKSUM $BUILD_DIR/bin/oauth2-proxy" | sha256sum -c -
22+
23+
1824

1925
# write out a start script
2026
cp "${BP_DIR}"/../scripts/start_*.sh "${BUILD_DIR}/bin"
27+
28+

0 commit comments

Comments
 (0)