mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
Handle patch releases inside NODE_VERSION
This commit is contained in:
parent
e5d5250753
commit
5932ece8d0
1 changed files with 4 additions and 1 deletions
|
|
@ -5,7 +5,10 @@ set -xeo pipefail
|
|||
NODE_VERSION=${1:-7.x}
|
||||
YARN_VERSION=${2:-0.27.5-1}
|
||||
|
||||
NODE_VERSION=`echo $NODE_VERSION | sed -r -e "s/([0-9]+)\.[0-9]+/\1\.x/g"`
|
||||
# Map MAJOR.MINOR.patch -> MAJOR.x
|
||||
#
|
||||
# NODE_VERSION may resolve to the full version if inside a node container image.
|
||||
NODE_VERSION=`echo $NODE_VERSION | sed -r -e "s/([0-9]+)\.[0-9]+.*/\1\.x/g"`
|
||||
|
||||
# add official debian repos for node and yarn
|
||||
curl -sS -L https://deb.nodesource.com/setup_${NODE_VERSION} | bash -
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue