Skip to content

Commit 948a99c

Browse files
committed
feat(container): add arm64 build
fixes conventional-changelog#3926
1 parent 1f735e1 commit 948a99c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/container-build.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
id: meta
2828
uses: docker/metadata-action@v5
2929
with:
30-
images: commitlint/commitlint
30+
images: kehrhardt/commitlint
3131
tags: |
3232
type=semver,pattern={{version}}
3333
type=edge,branch=master
@@ -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)