@@ -46,28 +46,28 @@ jobs:
46
46
id : branch_name
47
47
run : echo "GH_REF_NAME=$(echo ${{ github.ref_name }} | sed 's|/|-|g')" >> $GITHUB_OUTPUT
48
48
49
- - name : Build & Push ${{ github.event.repository.name }}:${{ matrix.platform}}-${{ steps.branch_name.outputs.GH_REF_NAME }}
49
+ - name : Build & Push ${{ github.event.repository.name }}:${{ matrix.platform == 'arm64/v8' && 'arm64' || 'amd64' }}-${{ steps.branch_name.outputs.GH_REF_NAME }}
50
50
if : ${{ github.ref_name != github.repository.default_branch }}
51
51
uses : docker/build-push-action@v5
52
52
with :
53
53
push : true
54
54
file : ' Dockerfile'
55
- tags : ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:${{ matrix.platform}}-${{ steps.branch_name.outputs.GH_REF_NAME }}
55
+ tags : ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:${{ matrix.platform == 'arm64/v8' && 'arm64' || 'amd64' }}-${{ steps.branch_name.outputs.GH_REF_NAME }}
56
56
cache-from : type=gha
57
57
cache-to : type=gha,mode=max
58
58
build-args : |
59
- platform=linux/${{ matrix.platform}}
59
+ platform=linux/${{ matrix.platform == 'arm64/v8' && 'arm64' || 'amd64' }}
60
60
label=dockerfile-path=https://github.com/${{ github.repository }}/blob/${{ github.sha }}/Dockerfile
61
61
62
- - name : Build & Push ${{ github.event.repository.name }}:${{ matrix.platform}}-gpu
63
- if : ${{ hashFiles('gpu.Dockerflie ') != '' }}
62
+ - name : Build & Push ${{ github.event.repository.name }}:${{ matrix.platform == 'arm64/v8' && 'arm64' || 'amd64' }}-gpu
63
+ if : ${{ hashFiles('gpu.Dockerfile ') != '' }}
64
64
uses : docker/build-push-action@v5
65
65
with :
66
66
push : true
67
67
file : ' gpu.Dockerfile'
68
- tags : ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:${{ matrix.platform}}-gpu
68
+ tags : ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:${{ matrix.platform == 'arm64/v8' && 'arm64' || 'amd64' }}-gpu
69
69
cache-from : type=gha
70
70
cache-to : type=gha,mode=max
71
71
build-args : |
72
- platform=linux/${{ matrix.platform}}
72
+ platform=linux/${{ matrix.platform == 'arm64/v8' && 'arm64' || 'amd64' }}
73
73
label=dockerfile-path=https://github.com/${{ github.repository }}/blob/${{ github.sha }}/gpu.Dockerfile
0 commit comments