Merge branch 'acunskis-automated-chromedriver-version' into 'master'

Automaticaly fetch chromedriver version based on chrome

See merge request gitlab-org/gitlab-build-images!558
This commit is contained in:
Stan Hu 2022-07-05 16:43:08 +00:00
commit 2432db6c3f
4 changed files with 33 additions and 41 deletions

View file

@ -45,26 +45,18 @@ function print_golang_args() {
# You may need to bump the version in scripts/install-chrome.
function print_chrome_args() {
case "$1" in
94|94.0)
CHROME_VERSION=94.0.4606.81-1
CHROME_DRIVER_VERSION=94.0.4606.113
;;
97|97.0)
CHROME_VERSION=97.0.4692.99-1
CHROME_DRIVER_VERSION=97.0.4692.71
;;
99|99.0)
CHROME_VERSION=99.0.4844.74-1
CHROME_DRIVER_VERSION=99.0.4844.51
;;
101|101.0)
CHROME_VERSION=101.0.4951.64-1
CHROME_DRIVER_VERSION=101.0.4951.41
;;
103|103.0)
CHROME_VERSION=103.0.5060.53-1
;;
*) echo "Unknown chrome version $1"; exit 1;
esac
printf -- "--build-arg CHROME_VERSION=%s " "$CHROME_VERSION"
printf -- "--build-arg CHROME_DRIVER_VERSION=%s " "$CHROME_DRIVER_VERSION"
}
# see https://www.kernel.org/pub/software/scm/git