File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ RUN apt-get update -qqy && \
68
68
# GeckoDriver
69
69
# ============
70
70
ARG GECKODRIVER_VERSION=latest
71
- RUN LATEST_VERSION=$(curl -sk https://api. github.com/repos/ mozilla/geckodriver/releases/latest | jq -r '.tag_name ' ) \
71
+ RUN LATEST_VERSION=$(curl -s -L -o /dev/null -w '%{url_effective} \n ' https://github.com/mozilla/geckodriver/releases/latest | sed -E 's#.*/tag/(v[0-9.]+).*# \1 # ' ) \
72
72
&& DRIVER_ARCH=$(if [ "$(dpkg --print-architecture)" = "amd64" ]; then echo "linux64" ; else echo "linux-aarch64" ; fi) \
73
73
&& GK_VERSION=$(if [ ${GECKODRIVER_VERSION:-latest} = "latest" ]; then echo "${LATEST_VERSION}" ; else echo $GECKODRIVER_VERSION; fi) \
74
74
&& echo "Using GeckoDriver version: " $GK_VERSION \
You can’t perform that action at this time.
0 commit comments