Skip to content

Commit

Permalink
feat(container): add arm64 build (#4049)
Browse files Browse the repository at this point in the history
fixes #3926
  • Loading branch information
kaiehrhardt authored Apr 28, 2024
1 parent 1f735e1 commit 28bed3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/container-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 28bed3f

Please sign in to comment.