Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(container): add arm64 build #4049

Merged
merged 1 commit into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]
Loading