Skip to content

Commit e027547

Browse files
authored
Build multi-platform docker image (#28)
1 parent 65e2fb1 commit e027547

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/master.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ jobs:
4747
password: ${{ secrets.DOCKERHUB_TOKEN }}
4848

4949
- name: Build and push
50-
uses: docker/build-push-action@v2
50+
uses: docker/build-push-action@v5
5151
with:
5252
context: .
5353
file: ./Dockerfile
54+
platforms: linux/amd64,linux/arm64,linux/i386
5455
push: true
5556
tags: mokiat/gocrane:latest

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release
22

33
on:
44
push:
5-
tags: [ '*' ]
5+
tags: ["*"]
66

77
jobs:
88
push:
@@ -29,9 +29,10 @@ jobs:
2929
password: ${{ secrets.DOCKERHUB_TOKEN }}
3030

3131
- name: Build and push
32-
uses: docker/build-push-action@v2
32+
uses: docker/build-push-action@v5
3333
with:
3434
context: .
3535
file: ./Dockerfile
36+
platforms: linux/amd64,linux/arm64,linux/i386
3637
push: true
3738
tags: mokiat/gocrane:${{ steps.get_tag.outputs.TAG }}

0 commit comments

Comments
 (0)