@@ -20,22 +20,30 @@ jobs:
20
20
with :
21
21
submodules : ' true'
22
22
23
+ - name : Set up QEMU
24
+ uses : docker/setup-qemu-action@v3
25
+ with :
26
+ platforms : arm64,arm
27
+
28
+ - name : Set up Docker Buildx
29
+ uses : docker/setup-buildx-action@v3
30
+ with :
31
+ platforms : linux/amd64,linux/arm64
32
+
23
33
- name : Log into registry
24
34
uses : docker/login-action@v3
25
35
with :
26
36
registry : " ${{ env.AZURE_CONTAINER_REGISTRY }}"
27
37
username : " ${{ env.ACR_LOGIN_USERNAME }}"
28
38
password : " ${{ env.ACR_LOGIN_PASSWORD }}"
29
39
30
- - name : Set up Docker Buildx
31
- uses : docker/setup-buildx-action@v3
32
-
33
40
- name : Build & Push ${{ github.event.repository.name }}:amd64
34
41
if : ${{ github.event_name != 'release' }}
35
42
uses : docker/build-push-action@v5
36
43
with :
37
44
cache-from : type=gha
38
45
cache-to : type=gha,mode=max
46
+ platforms : linux/amd64
39
47
file : ${{ env.DOCKERFILE }}
40
48
tags : ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:amd64
41
49
push : true
49
57
with :
50
58
cache-from : type=gha
51
59
cache-to : type=gha,mode=max
60
+ platforms : linux/arm64
52
61
file : ${{ env.DOCKERFILE }}
53
62
tags : ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:arm64
54
63
push : true
61
70
with :
62
71
cache-from : type=gha
63
72
cache-to : type=gha,mode=max
73
+ platforms : linux/amd64
64
74
file : ${{ env.DOCKERFILE }}
65
75
tags : ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:${{ env.IMAGE_TAG }}
66
76
push : true
73
83
with :
74
84
cache-from : type=gha
75
85
cache-to : type=gha,mode=max
86
+ platforms : linux/amd64
76
87
file : ${{ env.DOCKERFILE }}
77
88
tags : ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:latest
78
89
push : true
0 commit comments