File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 22
33set -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
88BP_DIR=" $( cd $( dirname " $0 " ) ; pwd) "
99BUILD_DIR=" $1 "
1010
11+ test -z " $tmp_dir " && tmp_dir=" $( mktemp -d) "
12+ mkdir -p " ${tmp_dir} "
13+ tmp_dir=" ${tmp_dir%/ } "
14+
1115mkdir -p " $BUILD_DIR /bin"
1216
1317echo " 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
2026cp " ${BP_DIR} " /../scripts/start_* .sh " ${BUILD_DIR} /bin"
27+
28+
You can’t perform that action at this time.
0 commit comments