File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
FROM centos:7
2
2
3
+ ARG NODE_VERSION=v12.9.1
3
4
RUN ARCH="$(uname -m | sed 's/86_64/64/; s/aarch64/arm64/')" && \
4
- curl -fsSL "https://nodejs.org/dist/v14.4.0 /node-v14.4.0 -linux-$ARCH.tar.xz" | tar -C /usr/local -xJ && \
5
- mv /usr/local/node-v14.4.0 -linux-$ARCH /usr/local/node-v14.4.0
6
- ENV PATH=/usr/local/node-v14.4.0 /bin:$PATH
5
+ curl -fsSL "https://nodejs.org/dist/$NODE_VERSION /node-$NODE_VERSION -linux-$ARCH.tar.xz" | tar -C /usr/local -xJ && \
6
+ mv " /usr/local/node-$NODE_VERSION -linux-$ARCH" " /usr/local/node-$NODE_VERSION"
7
+ ENV PATH=/usr/local/node-$NODE_VERSION /bin:$PATH
7
8
RUN npm install -g yarn
8
9
9
10
RUN yum groupinstall -y 'Development Tools'
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ RUN apt-get update
6
6
RUN apt-get install -y curl gnupg
7
7
8
8
# Installs node.
9
- RUN curl -fsSL https://deb.nodesource.com/setup_14 .x | bash - && \
9
+ RUN curl -fsSL https://deb.nodesource.com/setup_12 .x | bash - && \
10
10
apt-get install -y nodejs
11
11
12
12
# Installs yarn.
Original file line number Diff line number Diff line change 5
5
cd " $( dirname " $0 " ) /../.."
6
6
7
7
if [[ $OSTYPE == darwin* ]]; then
8
- curl -L https://nodejs.org/dist/v14.4.0 /node-v14.4.0 -darwin-x64.tar.gz | tar -xz
9
- PATH=" $PWD /node-v14.4.0 -darwin-x64/bin:$PATH "
8
+ curl -L " https://nodejs.org/dist/$NODE_VERSION /node-$NODE_VERSION -darwin-x64.tar.gz" | tar -xz
9
+ PATH=" $PWD /node-$NODE_VERSION -darwin-x64/bin:$PATH "
10
10
fi
11
11
12
12
# https://github.com/actions/upload-artifact/issues/38
You can’t perform that action at this time.
0 commit comments