17
17
DEV_LOGIN_PASSWORD : ${{ secrets.DEV_LOGIN_PASSWORD }}
18
18
strategy :
19
19
matrix :
20
- platform : [amd64, arm64/v8 ]
20
+ platform : [amd64, arm64]
21
21
steps :
22
22
- name : Checkout repository
23
23
uses : actions/checkout@v4
26
26
27
27
- name : Set up Docker Buildx
28
28
uses : docker/setup-buildx-action@v3
29
+ with :
30
+ platforms : linux/${{ matrix.platform }}
29
31
30
32
- name : Log into Azure registry
31
33
uses : docker/login-action@v3
@@ -46,26 +48,26 @@ jobs:
46
48
id : branch_name
47
49
run : echo "GH_REF_NAME=$(echo ${{ github.ref_name }} | sed 's|/|-|g')" >> $GITHUB_OUTPUT
48
50
49
- - name : Build & Push ${{ github.event.repository.name }}:${{ matrix.platform == 'arm64/v8' && 'arm64' || 'amd64' }}-${{ steps.branch_name.outputs.GH_REF_NAME }}
51
+ - name : Build & Push ${{ github.event.repository.name }}:${{ matrix.platform }}-${{ steps.branch_name.outputs.GH_REF_NAME }}
50
52
if : ${{ github.ref_name != github.repository.default_branch }}
51
53
uses : docker/build-push-action@v5
52
54
with :
53
55
push : true
54
56
file : ' Dockerfile'
55
- tags : ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:${{ matrix.platform == 'arm64/v8' && 'arm64' || 'amd64' }}-${{ steps.branch_name.outputs.GH_REF_NAME }}
57
+ tags : ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:${{ matrix.platform }}-${{ steps.branch_name.outputs.GH_REF_NAME }}
56
58
cache-from : type=gha
57
59
cache-to : type=gha,mode=max
58
60
build-args : |
59
61
platform=linux/${{ matrix.platform }}
60
62
label=dockerfile-path=https://github.com/${{ github.repository }}/blob/${{ github.sha }}/Dockerfile
61
63
62
- - name : Build & Push ${{ github.event.repository.name }}:${{ matrix.platform == 'arm64/v8' && 'arm64' || 'amd64' }}-gpu
64
+ - name : Build & Push ${{ github.event.repository.name }}:${{ matrix.platform }}-gpu
63
65
if : ${{ hashFiles('gpu.Dockerfile') != '' }}
64
66
uses : docker/build-push-action@v5
65
67
with :
66
68
push : true
67
69
file : ' gpu.Dockerfile'
68
- tags : ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:${{ matrix.platform == 'arm64/v8' && 'arm64' || 'amd64' }}-gpu
70
+ tags : ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:${{ matrix.platform }}-gpu
69
71
cache-from : type=gha
70
72
cache-to : type=gha,mode=max
71
73
build-args : |
0 commit comments