@@ -3,8 +3,7 @@ name: Deploy Docker images
33on :
44 push :
55 branches : ["main"]
6- release :
7- types : [published]
6+ tags : ["v*"]
87
98concurrency :
109 group : ${{ github.workflow }}-${{ github.ref }}
@@ -67,19 +66,19 @@ jobs:
6766 tags : |
6867 type=semver,pattern={{version}}
6968
70- - name : Set up QEMU
71- uses : docker/setup-qemu-action@v3
72-
73- - name : Set up Docker Buildx
74- uses : docker/setup-buildx-action@v3
75-
7669 - name : Login to GitHub Container Registry
7770 uses : docker/login-action@v3
7871 with :
7972 registry : ${{ env.REGISTRY }}
8073 username : ${{ github.repository_owner }}
8174 password : ${{ secrets.GITHUB_TOKEN }}
8275
76+ - name : Set up QEMU
77+ uses : docker/setup-qemu-action@v3
78+
79+ - name : Set up Docker Buildx
80+ uses : docker/setup-buildx-action@v3
81+
8382 - name : Build and push image
8483 id : build
8584 uses : docker/build-push-action@v6
8887 build-args : |
8988 BASE_IMAGE_VERSION=${{ matrix.major_version }}-slim
9089 CI_DOCKER_VERSION=${{ steps.meta.outputs.version || github.sha }}
90+ push : true
9191 platforms : ${{ matrix.arch.platform }}
92- tags : ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}
9392 labels : ${{ steps.meta.outputs.labels }}
93+ tags : ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}
9494 outputs : type=image,push-by-digest=true,name-canonical=true,push=true
9595
9696 - name : Export digest
@@ -229,6 +229,7 @@ jobs:
229229 build-args : |
230230 CI_DOCKER_VERSION=${{ steps.meta.outputs.version || github.sha }}
231231 CI_DOCKER_BASE_TAG=${{ steps.meta.outputs.version || format('{0}.{1}', matrix.major_version, 'edge') }}
232+ push : true
232233 platforms : ${{ matrix.arch.platform }}
233234 tags : ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE }}
234235 labels : ${{ steps.meta.outputs.labels }}
0 commit comments