Skip to content

Commit fcc0ecd

Browse files
authored
ci(docker): build image for arm64 (#361)
* ci(docker): build image for arm64 * no nx daemon
1 parent 211ffc4 commit fcc0ecd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/docker.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
branches:
55
- main
66
tags:
7-
- 'v*.*.*'
7+
- "v*.*.*"
88
pull_request:
99
branches:
1010
- main
@@ -26,6 +26,9 @@ jobs:
2626
username: ${{ github.actor }}
2727
password: ${{ secrets.GITHUB_TOKEN }}
2828

29+
- name: Set up QEMU
30+
uses: docker/setup-qemu-action@v3
31+
2932
- name: Docker meta
3033
id: meta
3134
uses: docker/metadata-action@v5
@@ -38,6 +41,7 @@ jobs:
3841
- name: Build and push
3942
uses: docker/build-push-action@v4
4043
with:
44+
platforms: linux/amd64,linux/arm64
4145
context: .
4246
file: libs/tools/src/docker/Dockerfile
4347
push: ${{ github.event_name == 'push' }}

libs/tools/src/docker/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FROM node:lts-bookworm-slim AS builder
22

33
ENV PNPM_HOME="/pnpm"
44
ENV PATH="$PNPM_HOME:$PATH"
5+
ENV NX_DAEMON="false"
56
RUN corepack enable
67

78
WORKDIR /build

0 commit comments

Comments
 (0)