Skip to content

Commit 0233f27

Browse files
committed
build: update NodeJS to v16 in CI builds
1 parent 0a8c060 commit 0233f27

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
strategy:
2626
matrix:
27-
node_version: [12.x]
27+
node_version: [16.x]
2828
os: [ubuntu-latest, windows-latest, macOS-latest]
2929

3030
steps:
@@ -109,10 +109,10 @@ jobs:
109109
id: yarn-cache
110110
with:
111111
path: ${{ steps.yarn-cache-dir.outputs.dir }}
112-
key: ${{ runner.os }}-yarn-12.x-${{ hashFiles('**/yarn.lock') }}
112+
key: ${{ runner.os }}-yarn-16.x-${{ hashFiles('**/yarn.lock') }}
113113
restore-keys: |
114-
${{ runner.os }}-yarn-12.x-${{ hashFiles('**/yarn.lock') }}
115-
${{ runner.os }}-yarn-12.x-
114+
${{ runner.os }}-yarn-16.x-${{ hashFiles('**/yarn.lock') }}
115+
${{ runner.os }}-yarn-16.x-
116116
${{ runner.os }}-yarn-
117117
118118
- name: setup go v${{ matrix.go_version }}
@@ -138,10 +138,10 @@ jobs:
138138
- name: git checkout
139139
uses: actions/checkout@v2
140140

141-
- name: setup nodejs v${{ matrix.node_version }}
141+
- name: setup nodejs v16.x
142142
uses: actions/setup-node@v1
143143
with:
144-
node-version: 12.x
144+
node-version: 16.x
145145

146146
- name: download cache
147147
uses: actions/cache@v1
@@ -192,7 +192,7 @@ jobs:
192192
- name: setup nodejs v${{ matrix.node_version }}
193193
uses: actions/setup-node@v1
194194
with:
195-
node-version: 12.x
195+
node-version: 16.x
196196

197197
- name: download cache
198198
uses: actions/cache@v1

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Start with a NodeJS base image that also contains yarn.
2-
FROM node:12.17.0-alpine as nodejsbuilder
2+
FROM node:16.14.2-alpine as nodejsbuilder
33

44
# Pass a tag, branch or a commit using build-arg. This allows a docker image to
55
# be built from a specified Git state. The default image will use the Git tip of
@@ -20,8 +20,8 @@ ARG public_url=""
2020
# be mitigated by switching to HTTP and increasing the network timeout.
2121
# See https://github.com/yarnpkg/yarn/issues/5259 for more info.
2222
RUN apk add --no-cache --update alpine-sdk \
23-
python \
24-
git \
23+
python \
24+
git \
2525
&& git clone https://github.com/lightninglabs/lightning-terminal /go/src/github.com/lightninglabs/lightning-terminal \
2626
&& cd /go/src/github.com/lightninglabs/lightning-terminal \
2727
&& git checkout $checkout \
@@ -51,7 +51,7 @@ ENV GO111MODULE on
5151

5252
# Install dependencies and install/build lightning-terminal.
5353
RUN apk add --no-cache --update alpine-sdk \
54-
make \
54+
make \
5555
&& cd /go/src/github.com/lightninglabs/lightning-terminal \
5656
&& make go-install PUBLIC_URL=$public_url \
5757
&& make go-install-cli
@@ -75,9 +75,9 @@ COPY --from=golangbuilder /go/bin/pool /bin/
7575

7676
# Add bash.
7777
RUN apk add --no-cache \
78-
bash \
79-
jq \
80-
ca-certificates
78+
bash \
79+
jq \
80+
ca-certificates
8181

8282
# Specify the start command and entrypoint as the lightning-terminal daemon.
8383
ENTRYPOINT ["litd"]

dev.Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Start with a NodeJS base image that also contains yarn.
2-
FROM node:12.17.0-alpine as nodejsbuilder
2+
FROM node:16.14.2-alpine as nodejsbuilder
33

44
# Copy in the local repository to build from.
55
COPY . /go/src/github.com/lightninglabs/lightning-terminal
@@ -28,7 +28,7 @@ ENV GO111MODULE on
2828

2929
# Install dependencies and install/build lightning-terminal.
3030
RUN apk add --no-cache --update alpine-sdk \
31-
make \
31+
make \
3232
&& cd /go/src/github.com/lightninglabs/lightning-terminal \
3333
&& make go-install \
3434
&& make go-install-cli
@@ -52,9 +52,9 @@ COPY --from=golangbuilder /go/bin/pool /bin/
5252

5353
# Add bash.
5454
RUN apk add --no-cache \
55-
bash \
56-
jq \
57-
ca-certificates
55+
bash \
56+
jq \
57+
ca-certificates
5858

5959
# Specify the start command and entrypoint as the lightning-terminal daemon.
6060
ENTRYPOINT ["litd"]

proto/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Start with a NodeJS base image that also contains yarn.
2-
FROM node:12.17.0-buster as nodejsbuilder
2+
FROM node:16.14.2-buster as nodejsbuilder
33

44
RUN apt-get update && apt-get install -y \
55
git \

0 commit comments

Comments
 (0)