@@ -17,25 +17,29 @@ jobs:
1717 fail-fast : false
1818 matrix :
1919 arch :
20- - platform : linux/ amd64
20+ - name : amd64
2121 runner : ubuntu-24.04
22- - platform : linux/ arm64
22+ - name : arm64
2323 runner : ubuntu-24.04-arm
2424 runs-on : ${{ matrix.arch.runner }}
2525 steps :
26+ - uses : actions/checkout@v4
2627 - name : Prepare
2728 run : |
2829 echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
2930 echo "DOCKER_IMAGE_VERSION=$(cat "./shared/definitions/docker_image_version")" >> $GITHUB_ENV
3031 env :
31- platform : ${{ matrix.arch.platform }}
32+ platform : linux/ ${{ matrix.arch.name }}
3233
3334 - name : Docker meta
3435 id : meta
3536 uses : docker/metadata-action@v5
3637 with :
3738 images : |
3839 ${{ env.GHCR_REPO }}
40+ tags : |
41+ type=raw,value=${{ env.DOCKER_IMAGE_VERSION }}-${{ matrix.arch.name }}
42+ type=edge,enable=true,priority=700,prefix=,suffix=${{ matrix.arch.name }},branch=$repo.default_branch
3943
4044 - name : Login to GHCR
4145 uses : docker/login-action@v3
@@ -50,14 +54,15 @@ jobs:
5054 - name : Set up Docker Buildx
5155 uses : docker/setup-buildx-action@v3
5256
53- - name : Build and push by digest
57+ - name : Build and push by tag
5458 id : build
5559 uses : docker/build-push-action@v6
5660 with :
5761 file : ./linux/docker_image/Dockerfile
58- platforms : ${{ matrix.arch.platform }}
62+ platforms : linux/ ${{ matrix.arch.name }}
5963 labels : ${{ steps.meta.outputs.labels }}
60- outputs : " type=image,name=${{ env.GHCR_REPO }},push-by-digest=true,name-canonical=true,push=true"
64+ tags : ${{ steps.meta.outputs.tags }}
65+ outputs : " type=image,name=${{ env.GHCR_REPO }},push-by-digest=false,name-canonical=true,push=true"
6166
6267 - name : Export digest
6368 run : |
7883 needs :
7984 - build
8085 steps :
86+ - uses : actions/checkout@v4
87+ - name : Prepare
88+ run : echo "DOCKER_IMAGE_VERSION=$(cat "./shared/definitions/docker_image_version")" >> $GITHUB_ENV
89+
8190 - name : Download digests
8291 uses : actions/download-artifact@v4
8392 with :
@@ -102,10 +111,9 @@ jobs:
102111 images : |
103112 ${{ env.GHCR_REPO }}
104113 tags : |
105- type=ref,event=branch
106- type=ref,event=pr
107- type=semver,pattern={{version}}
108- type=semver,pattern={{major}}.{{minor}}
114+ type=raw,value=${{ env.DOCKER_IMAGE_VERSION }}
115+ type=raw,value=latest
116+ type=edge,enable=true,priority=700,prefix=,suffix=,branch=$repo.default_branch
109117
110118 - name : Create manifest list and push
111119 working-directory : /tmp/digests
0 commit comments