@@ -171,12 +171,30 @@ jobs:
171171 rm -rf /tmp/.docker-cache
172172 mv /tmp/.docker-cache-new /tmp/.docker-cache
173173 - name : 🚀 Push
174- # yamllint disable rule:line-length
175- run : |
176- docker push \
177- "ghcr.io/${{ github.repository_owner }}/${{ needs.information.outputs.slug }}/${{ matrix.architecture }}:${{ needs.information.outputs.environment }}"
178- docker push \
179- "ghcr.io/${{ github.repository_owner }}/${{ needs.information.outputs.slug }}/${{ matrix.architecture }}:${{ needs.information.outputs.version }}"
174+ uses : docker/build-push-action@v6.18.0
175+ with :
176+ outputs : type=image,oci-mediatypes=true,compression=zstd,push=true
177+ # yamllint disable rule:line-length
178+ tags : |
179+ ghcr.io/${{ github.repository_owner }}/${{ needs.information.outputs.slug }}/${{ matrix.architecture }}:${{ needs.information.outputs.environment }}
180+ ghcr.io/${{ github.repository_owner }}/${{ needs.information.outputs.slug }}/${{ matrix.architecture }}:${{ needs.information.outputs.version }}
181+ # yamllint enable rule:line-length
182+ context : ${{ needs.information.outputs.target }}
183+ file : ${{ needs.information.outputs.target }}/Dockerfile
184+ cache-from : |
185+ type=local,src=/tmp/.docker-cache
186+ ghcr.io/${{ github.repository_owner }}/${{ needs.information.outputs.slug }}/${{ matrix.architecture }}:edge
187+ cache-to : type=local,mode=max,dest=/tmp/.docker-cache-new
188+ platforms : ${{ steps.flags.outputs.platform }}
189+ build-args : |
190+ BUILD_ARCH=${{ matrix.architecture }}
191+ BUILD_DATE=${{ steps.flags.outputs.date }}
192+ BUILD_DESCRIPTION=${{ needs.information.outputs.description }}
193+ BUILD_FROM=${{ steps.flags.outputs.from }}
194+ BUILD_NAME=${{ needs.information.outputs.name }}
195+ BUILD_REF=${{ github.sha }}
196+ BUILD_REPOSITORY=${{ github.repository }}
197+ BUILD_VERSION=${{ needs.information.outputs.version }}
180198
181199 publish-edge :
182200 name : 📢 Publish to edge repository
0 commit comments