File tree 2 files changed +7
-5
lines changed 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,8 @@ LABEL org.opencontainers.image.documentation="https://jitsi.github.io/handbook/"
11
11
ARG TARGETPLATFORM
12
12
ARG USE_CHROMIUM=0
13
13
# ARG CHROME_RELEASE=latest
14
- # ARG CHROMEDRIVER_MAJOR_RELEASE=latest
14
+ # https://googlechromelabs.github.io/chrome-for-testing/
15
15
ARG CHROME_RELEASE=116.0.5845.96
16
- ARG CHROMEDRIVER_MAJOR_RELEASE=116
17
16
18
17
COPY rootfs/ /
19
18
Original file line number Diff line number Diff line change 21
21
22
22
google-chrome --version
23
23
24
- if [ " ${CHROMEDRIVER_MAJOR_RELEASE} " = " latest" ]; then
25
- CHROMEDRIVER_RELEASE=" $( curl -4Ls https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_STABLE) "
24
+ BASE_URL=https://googlechromelabs.github.io/chrome-for-testing
25
+
26
+ if [ " ${CHROME_RELEASE} " = " latest" ]; then
27
+ CHROMEDRIVER_RELEASE=" $( curl -4Ls ${BASE_URL} /LATEST_RELEASE_STABLE) "
26
28
else
27
- CHROMEDRIVER_RELEASE=" $( curl -4Ls https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_${CHROMEDRIVER_MAJOR_RELEASE} ) "
29
+ CHROMEDRIVER_MAJOR_RELEASE=$( echo $CHROME_RELEASE | cut -d. -f1)
30
+ CHROMEDRIVER_RELEASE=" $( curl -4Ls ${BASE_URL} /LATEST_RELEASE_${CHROMEDRIVER_MAJOR_RELEASE} ) "
28
31
fi
29
32
30
33
CHROMEDRIVER_ZIP=" /tmp/chromedriver_linux64.zip"
You can’t perform that action at this time.
0 commit comments