Skip to content

Commit

Permalink
Add arm64 architecture to docker automation build
Browse files Browse the repository at this point in the history
  • Loading branch information
illuspas committed Dec 4, 2024
1 parent 112559f commit 4e0d875
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Checkout code
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
Expand All @@ -29,5 +36,7 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: illuspas/node-media-server:latest, illuspas/node-media-server:${{steps.tag.outputs.tag}}
tags: illuspas/node-media-server:latest, illuspas/node-media-server:${{steps.tag.outputs.tag}}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:lts-alpine
FROM --platform=$TARGETPLATFORM node:lts-alpine

WORKDIR /node-media-server

Expand Down

0 comments on commit 4e0d875

Please sign in to comment.