Skip to content

Commit ecf6c30

Browse files
authored
Merge pull request #24 from sandervankasteel/feature/Arm64DockerBuilds
Updated Github actions to build for both AMD64 and ARM64
2 parents 0b0ec7a + a5145cd commit ecf6c30

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,29 @@ jobs:
2121
- name: Checkout repository
2222
uses: actions/checkout@v3
2323

24+
- name: Set up QEMU
25+
uses: docker/setup-qemu-action@v3
26+
27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@v3
29+
2430
- name: Log in to the Container registry
25-
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
31+
uses: docker/login-action@v3
2632
with:
2733
registry: ${{ env.REGISTRY }}
2834
username: ${{ github.actor }}
2935
password: ${{ secrets.GITHUB_TOKEN }}
3036

3137
- name: Extract metadata (tags, labels) for Docker
3238
id: meta
33-
uses: docker/metadata-action@507c2f2dc502c992ad446e3d7a5dfbe311567a96
39+
uses: docker/metadata-action@v5
3440
with:
3541
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3642

3743
- name: Build and push Docker image
38-
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
44+
uses: docker/build-push-action@v6
3945
with:
46+
platforms: linux/amd64,linux/arm64
4047
context: .
4148
push: true
4249
tags: ${{ steps.meta.outputs.tags }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM node:18
22

3-
ENV RUNTIME_ENV container
3+
ENV RUNTIME_ENV=container
44

55
RUN useradd -u 3000 recv
66

0 commit comments

Comments
 (0)