Add node@18 to the build matrix for the GitLab image

See: https://gitlab.com/gitlab-org/gitlab/-/issues/385512
This commit is contained in:
Lukas Eipert 2022-12-13 11:00:22 +01:00
parent 40de346eb3
commit 8af15e7962
3 changed files with 4 additions and 3 deletions

View file

@ -2,7 +2,7 @@
set -xeuo pipefail
IFS=$'\n\t'
NODE_INSTALL_VERSION=${1:-16.14.2}
NODE_INSTALL_VERSION=${1:-18.12.1}
YARN_INSTALL_VERSION=${2:-1.22.17}
# Map MAJOR.MINOR.patch -> MAJOR.x

View file

@ -138,6 +138,7 @@ function print_node_args() {
14.15) NODE_INSTALL_VERSION=14.15.4 ;;
14|14.16) NODE_INSTALL_VERSION=14.16.0 ;;
16|16.14) NODE_INSTALL_VERSION=16.14.2 ;;
18|18.12) NODE_INSTALL_VERSION=18.12.1 ;;
*) fail "Unknown node version $1" ;;
esac
printf -- "--build-arg NODE_INSTALL_VERSION=%s " "$NODE_INSTALL_VERSION"