mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
Update node repo pool to pull from latest location
This commit is contained in:
parent
d738d51245
commit
98c31fec48
1 changed files with 1 additions and 6 deletions
|
|
@ -8,12 +8,7 @@ YARN_INSTALL_VERSION=${2}
|
|||
# Map MAJOR.MINOR.patch -> MAJOR.x
|
||||
NODE_MAJOR=$(echo "$NODE_INSTALL_VERSION" | sed -r -e "s/([0-9]+)\.[0-9]+.*/\1\.x/g")
|
||||
|
||||
# add official debian repos for node
|
||||
curl -sS -L "https://deb.nodesource.com/setup_${NODE_MAJOR}" | bash -
|
||||
|
||||
apt-get update
|
||||
|
||||
NODE_FILE_NAME="nodejs_$NODE_INSTALL_VERSION-deb-1nodesource1_${TARGETARCH:-amd64}.deb"
|
||||
NODE_FILE_NAME="nodejs_$NODE_INSTALL_VERSION-1nodesource1_${TARGETARCH:-amd64}.deb"
|
||||
curl -s -O "https://deb.nodesource.com/node_$NODE_MAJOR/pool/main/n/nodejs/$NODE_FILE_NAME"
|
||||
dpkg -i "$NODE_FILE_NAME"
|
||||
rm -f "$NODE_FILE_NAME"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue