Skip to content

Commit cdd2cff

Browse files
committed
build multiarch image
1 parent 793f829 commit cdd2cff

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/build-image.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,32 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
1415

15-
- uses: docker/metadata-action@v5
16+
- name: Get metadata
17+
uses: docker/metadata-action@v5
1618
id: metadata
1719
with:
1820
images: ghcr.io/${{ github.repository }}
19-
20-
- uses: docker/login-action@v3
21+
22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@v3
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v3
27+
28+
- name: Login to ghcr.io
29+
uses: docker/login-action@v3
2130
with:
2231
registry: ghcr.io
2332
username: ${{ github.actor }}
2433
password: ${{ secrets.GITHUB_TOKEN }}
25-
26-
- uses: int128/kaniko-action@v1
34+
35+
- name: Build and push
36+
uses: docker/build-push-action@v6
2737
with:
38+
platforms: linux/amd64,linux/arm64
2839
push: true
29-
cache: false
3040
tags: ${{ steps.metadata.outputs.tags }}
3141
labels: ${{ steps.metadata.outputs.labels }}

0 commit comments

Comments
 (0)