File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,11 @@ RUN if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
31
31
# GeckoDriver
32
32
# ============
33
33
ARG GECKODRIVER_VERSION=latest
34
- RUN DRIVER_ARCH=$(if [ "$(dpkg --print-architecture)" = "amd64" ]; then echo "linux64" ; else echo "linux-aarch64" ; fi) \
35
- && GK_VERSION=$(if [ ${GECKODRIVER_VERSION:-latest} = "latest" ]; then echo "0.34.0" ; else echo $GECKODRIVER_VERSION; fi) \
34
+ RUN if LATEST_VERSION=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest | jq -r '.tag_name' ) \
35
+ && DRIVER_ARCH=$(if [ "$(dpkg --print-architecture)" = "amd64" ]; then echo "linux64" ; else echo "linux-aarch64" ; fi) \
36
+ && GK_VERSION=$(if [ ${GECKODRIVER_VERSION:-latest} = "latest" ]; then echo "${LATEST_VERSION}" ; else echo $GECKODRIVER_VERSION; fi) \
36
37
&& echo "Using GeckoDriver version: " $GK_VERSION \
37
- && wget --no-verbose -O /tmp/geckodriver.tar.gz https://github.com/mozilla/geckodriver/releases/download/v ${GK_VERSION}/geckodriver-v ${GK_VERSION}-${DRIVER_ARCH}.tar.gz \
38
+ && wget --no-verbose -O /tmp/geckodriver.tar.gz https://github.com/mozilla/geckodriver/releases/download/${GK_VERSION}/geckodriver-${GK_VERSION}-${DRIVER_ARCH}.tar.gz \
38
39
&& rm -rf /opt/geckodriver \
39
40
&& tar -C /opt -zxf /tmp/geckodriver.tar.gz \
40
41
&& rm /tmp/geckodriver.tar.gz \
You can’t perform that action at this time.
0 commit comments