mirror of
https://gitlab.com/jarylc/docker-duoauthproxy.git
synced 2026-02-04 15:04:41 +00:00
missed out consuming ALPINE_VERSION in build.sh
This commit is contained in:
4
build.sh
4
build.sh
@@ -19,6 +19,6 @@ docker buildx create --use --name builder
|
|||||||
docker buildx inspect --bootstrap builder
|
docker buildx inspect --bootstrap builder
|
||||||
docker buildx install
|
docker buildx install
|
||||||
|
|
||||||
docker buildx build --cache-to=type=local,dest=cache,mode=max --build-arg VERSION --build-arg CHECKSUM --build-arg PYTHON_VERSION --platform "linux/${ARCH}" -t "${REGISTRY_IMAGE}:${ARCH/\//}" .
|
docker buildx build --cache-to=type=local,dest=cache,mode=max --build-arg VERSION --build-arg CHECKSUM --build-arg PYTHON_VERSION --build-arg ALPINE_VERSION --platform "linux/${ARCH}" -t "${REGISTRY_IMAGE}:${ARCH/\//}" .
|
||||||
echo "${TOKEN}" | docker login -u "${USERNAME}" --password-stdin ${REGISTRY}
|
echo "${TOKEN}" | docker login -u "${USERNAME}" --password-stdin ${REGISTRY}
|
||||||
docker buildx build --push --cache-from=type=local,src=cache --build-arg VERSION --build-arg CHECKSUM --build-arg PYTHON_VERSION --platform "linux/${ARCH}" -t "${REGISTRY_IMAGE}:${ARCH/\//}" .
|
docker buildx build --push --cache-from=type=local,src=cache --build-arg VERSION --build-arg CHECKSUM --build-arg PYTHON_VERSION --build-arg ALPINE_VERSION --platform "linux/${ARCH}" -t "${REGISTRY_IMAGE}:${ARCH/\//}" .
|
||||||
|
|||||||
4
check.sh
4
check.sh
@@ -6,10 +6,10 @@ apk add curl jq htmlq
|
|||||||
EXISTING=$(cat EXISTING)
|
EXISTING=$(cat EXISTING)
|
||||||
echo "Existing: ${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)
|
CHECKSUM=$(echo "$INFO" | cut -d' ' -f1)
|
||||||
LATEST=$(echo "$INFO" | cut -d'-' -f2)
|
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'
|
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
|
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
|
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