mirror of
https://gitlab.com/jarylc/docker-duoauthproxy.git
synced 2026-02-04 20:19:44 +00:00
missed out consuming ALPINE_VERSION in build.sh
This commit is contained in:
4
check.sh
4
check.sh
@@ -6,10 +6,10 @@ apk add curl jq htmlq
|
||||
EXISTING=$(cat EXISTING)
|
||||
echo "Existing: ${EXISTING}"
|
||||
|
||||
INFO=$(curl https://duo.com/docs/checksums | grep 'https://dl.duosecurity.com/duoauthproxy' | grep 'src.tgz' | rev | cut -d'>' -f1 | rev)
|
||||
INFO=$(curl -s https://duo.com/docs/checksums | grep 'https://dl.duosecurity.com/duoauthproxy' | grep 'src.tgz' | rev | cut -d'>' -f1 | rev)
|
||||
CHECKSUM=$(echo "$INFO" | cut -d' ' -f1)
|
||||
LATEST=$(echo "$INFO" | cut -d'-' -f2)
|
||||
PYTHON_VERSION=$(curl https://duo.com/docs/authproxy-notes | grep -Eo 'Python to \d+\.\d+\.\d+' | head -n1 | rev | cut -d' ' -f1 | rev)
|
||||
PYTHON_VERSION=$(curl -s https://duo.com/docs/authproxy-notes | grep -Eo 'Python to \d+\.\d+\.\d+' | head -n1 | rev | cut -d' ' -f1 | rev)
|
||||
ALPINE_VERSION='edge'
|
||||
for ALPINE_VERSION in $(curl -s "https://pkgs.alpinelinux.org/packages?name=python${PYTHON_VERSION%.*.*}" | htmlq -w --text 'select#branch > option' | grep -v 'Branch' | grep -v 'edge' | tac | xargs); do
|
||||
if curl -s "https://pkgs.alpinelinux.org/packages?name=python${PYTHON_VERSION%.*.*}&branch=${ALPINE_VERSION}" | grep -q ${PYTHON_VERSION%.*}; then
|
||||
|
||||
Reference in New Issue
Block a user