Skip to content

Commit 31888b8

Browse files
authored
Merge pull request #20 from TRC-Loop/19-support-for-raspberry-pi-5
Added QEMU and arm64/v7 support
2 parents 12ba8ed + c686a33 commit 31888b8

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/docker-release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build Docker on Release
22
permissions:
33
contents: read
4+
45
on:
56
workflow_dispatch:
67
inputs:
@@ -10,13 +11,19 @@ on:
1011
default: 'manual'
1112
release:
1213
types: [created]
14+
1315
jobs:
1416
build-and-push:
1517
runs-on: ubuntu-latest
1618

1719
steps:
1820
- name: Checkout repository
19-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
22+
23+
- name: Set up QEMU
24+
uses: docker/setup-qemu-action@v3
25+
with:
26+
platforms: all
2027

2128
- name: Set up Docker Buildx
2229
uses: docker/setup-buildx-action@v3
@@ -27,12 +34,13 @@ jobs:
2734
username: ${{ secrets.DOCKERHUB_USERNAME }}
2835
password: ${{ secrets.DOCKERHUB_TOKEN }}
2936

30-
- name: Build and push Docker image
37+
- name: Build and push multi-arch Docker image
3138
uses: docker/build-push-action@v5
3239
with:
3340
context: .
3441
file: ./Dockerfile
3542
push: true
43+
platforms: linux/amd64,linux/arm64,linux/arm/v7
3644
tags: |
3745
trcloop/crondns:${{ github.ref_name }}
3846
trcloop/crondns:latest

0 commit comments

Comments
 (0)