mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-10 02:22:57 +01:00
Remove old chrome versions and add chrome 120
This commit is contained in:
parent
038e54fb88
commit
55e0d4e969
5 changed files with 9 additions and 29 deletions
|
|
@ -38,16 +38,8 @@ function build_debian() {
|
|||
if [ "${ARCH}" == "amd64" ]; then
|
||||
CHROME_VERSION_BASE=$(echo $CHROME_VERSION | awk -F "." '{print $1 "." $2 "." $3}')
|
||||
CHROME_VERSION_MAJOR=$(echo $CHROME_VERSION | awk -F "." '{print $1}')
|
||||
|
||||
# Chromedriver location has moved starting with v115
|
||||
# TODO: Remove once oldest supported version across installs is > 114
|
||||
if [ "$CHROME_VERSION_MAJOR" -gt "114" ]; then
|
||||
CHROME_DRIVER_VERSION=$(curl -q https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_$CHROME_VERSION_BASE)
|
||||
WEBDRIVER_URL=https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/$CHROME_DRIVER_VERSION/linux64/chromedriver-linux64.zip
|
||||
else
|
||||
CHROME_DRIVER_VERSION=$(curl -q https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION_BASE)
|
||||
WEBDRIVER_URL=https://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip
|
||||
fi
|
||||
CHROME_DRIVER_VERSION=$(curl -q https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_$CHROME_VERSION_BASE)
|
||||
WEBDRIVER_URL=https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/$CHROME_DRIVER_VERSION/linux64/chromedriver-linux64.zip
|
||||
|
||||
wget -q -O chromedriver.zip $WEBDRIVER_URL
|
||||
unzip -j chromedriver.zip -d /usr/local/bin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue