Skip to content

Commit 79a8302

Browse files
committed
build: add linux/arm64 platform
1 parent b0cd6a0 commit 79a8302

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/docker-publish.yml renamed to .github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker Image
1+
name: Release
22

33
on:
44
release:
@@ -16,30 +16,30 @@ jobs:
1616
packages: write
1717

1818
steps:
19-
- name: Checkout repository
20-
uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
2120

22-
- name: Log into registry ${{ env.REGISTRY }}
23-
uses: docker/login-action@v1
21+
- uses: docker/setup-qemu-action@v3
22+
- uses: docker/setup-buildx-action@v3
23+
24+
- uses: docker/login-action@v3
2425
with:
2526
registry: ${{ env.REGISTRY }}
2627
username: ${{ github.actor }}
2728
password: ${{ secrets.GITHUB_TOKEN }}
2829

29-
- name: Extract Docker metadata
30+
- uses: docker/metadata-action@v5
3031
id: meta
31-
uses: docker/metadata-action@v3
3232
with:
3333
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3434
tags: |
3535
type=ref,event=branch
3636
type=ref,event=pr
3737
type=semver,pattern={{version}}
3838
39-
- name: Build and push Docker image
40-
uses: docker/build-push-action@v2
39+
- uses: docker/build-push-action@v4
4140
with:
4241
context: .
42+
platforms: linux/amd64,linux/arm64
4343
push: true
4444
tags: ${{ steps.meta.outputs.tags }}
4545
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)