File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 23
23
- name : Checkout repository
24
24
uses : actions/checkout@v4
25
25
26
+ - name : Set up QEMU
27
+ uses : docker/setup-qemu-action@v3
28
+
26
29
- name : Set up Docker Buildx
27
30
uses : docker/setup-buildx-action@v3
28
31
@@ -39,17 +42,17 @@ jobs:
39
42
with :
40
43
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
41
44
tags : |
42
- type=raw,value=latest
43
- type=ref,event=branch
44
- type=ref,event=pr
45
+ type=raw,value=latest,enable={{is_default_branch}}
45
46
type=semver,pattern={{version}}
46
47
type=semver,pattern={{major}}.{{minor}}
48
+ type=semver,pattern={{major}}.{{minor}}.{{patch}}
47
49
type=sha,format=long
48
50
49
51
- name : Build and push Docker image
50
52
uses : docker/build-push-action@v5
51
53
with :
52
54
context : .
55
+ platforms : linux/amd64,linux/arm64
53
56
push : ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
54
57
tags : ${{ steps.meta.outputs.tags }}
55
58
labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments