Skip to content

Commit

Permalink
update: fetch latest Geckodriver via GH api
Browse files Browse the repository at this point in the history
Correct typo in syntax
  • Loading branch information
VietND96 authored Aug 6, 2024
1 parent a1376bb commit 3433334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NodeFirefox/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RUN if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
# GeckoDriver
#============
ARG GECKODRIVER_VERSION=latest
RUN if LATEST_VERSION=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest | jq -r '.tag_name') \
RUN LATEST_VERSION=$(curl -s https://api.github.com/repos/mozilla/geckodriver/releases/latest | jq -r '.tag_name') \
&& DRIVER_ARCH=$(if [ "$(dpkg --print-architecture)" = "amd64" ]; then echo "linux64"; else echo "linux-aarch64"; fi) \
&& GK_VERSION=$(if [ ${GECKODRIVER_VERSION:-latest} = "latest" ]; then echo "${LATEST_VERSION}"; else echo $GECKODRIVER_VERSION; fi) \
&& echo "Using GeckoDriver version: "$GK_VERSION \
Expand Down

0 comments on commit 3433334

Please sign in to comment.