Skip to content

Commit f983c13

Browse files
authored
Merge pull request #19 from Floppy/patch-1
Add ARM64 build to docker publish workflow
2 parents 21eba43 + c4351a6 commit f983c13

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/publish-docker.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,24 @@ jobs:
1313
- name: checkout repository
1414
uses: actions/checkout@v4
1515

16-
- name: build docker image
17-
run: docker build -t lurker:latest .
18-
1916
- name: log in to github container registry
2017
uses: docker/login-action@v3
2118
with:
2219
registry: ghcr.io
2320
username: ${{ github.actor }}
2421
password: ${{ secrets.GITHUB_TOKEN }}
2522

26-
- name: publish docker image
27-
run: |
28-
docker tag lurker:latest ghcr.io/${{ github.repository_owner }}/lurker:latest
29-
docker push ghcr.io/${{ github.repository_owner }}/lurker:latest
23+
- name: Set up QEMU
24+
uses: docker/setup-qemu-action@v3
25+
26+
- name: Set up Docker Buildx
27+
uses: docker/setup-buildx-action@v3
28+
29+
- name: Build and push
30+
id: build
31+
uses: docker/build-push-action@v6
32+
with:
33+
context: .
34+
platforms: linux/amd64,linux/arm64
35+
push: true
36+
tags: ghcr.io/${{ github.repository_owner }}/lurker:latest

0 commit comments

Comments
 (0)