Skip to content

Commit 28bed3f

Browse files
authored
feat(container): add arm64 build (#4049)
fixes #3926
1 parent 1f735e1 commit 28bed3f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/container-build.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,4 @@ jobs:
4141
push: true
4242
tags: ${{ steps.meta.outputs.tags }}
4343
labels: ${{ steps.meta.outputs.labels }}
44-
# disable arm build for now, because of https://github.com/nodejs/docker-node/issues/1335
45-
platforms: linux/amd64 #,linux/arm64
44+
platforms: linux/amd64,linux/arm64

Dockerfile.ci

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM docker.io/library/node:18-buster AS builder
22
WORKDIR /src
33
COPY . ./
4-
RUN yarn install && \
4+
RUN yarn install --frozen-lockfile --network-timeout 100000 && \
55
yarn run build && \
66
# Commit lint CLI packages
77
npm pack @commitlint/cli && \
@@ -26,6 +26,8 @@ RUN yarn install && \
2626

2727
FROM docker.io/library/node:18-buster
2828
COPY --from=builder /src/*.tgz ./
29-
RUN npm install -g *.tgz && \
29+
RUN npm config set fetch-retry-mintimeout 20000 && \
30+
npm config set fetch-retry-maxtimeout 120000 && \
31+
npm install --no-audit -g *.tgz && \
3032
rm -rf *.tgz
3133
ENTRYPOINT ["commitlint"]

0 commit comments

Comments
 (0)