Skip to content

Commit

Permalink
feat(container): add arm64 build
Browse files Browse the repository at this point in the history
fixes #3926
  • Loading branch information
kaiehrhardt committed Apr 27, 2024
1 parent 1f735e1 commit 948a99c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/container-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: commitlint/commitlint
images: kehrhardt/commitlint
tags: |
type=semver,pattern={{version}}
type=edge,branch=master
Expand All @@ -41,5 +41,4 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# disable arm build for now, because of https://github.com/nodejs/docker-node/issues/1335
platforms: linux/amd64 #,linux/arm64
platforms: linux/amd64,linux/arm64
6 changes: 4 additions & 2 deletions Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM docker.io/library/node:18-buster AS builder
WORKDIR /src
COPY . ./
RUN yarn install && \
RUN yarn install --frozen-lockfile --network-timeout 100000 && \
yarn run build && \
# Commit lint CLI packages
npm pack @commitlint/cli && \
Expand All @@ -26,6 +26,8 @@ RUN yarn install && \

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

0 comments on commit 948a99c

Please sign in to comment.