@@ -69,22 +69,25 @@ jobs:
6969 type=semver,pattern={{version}},value=${{ steps.vars.outputs.version }}
7070 type=semver,pattern={{major}}.{{minor}},value=${{ steps.vars.outputs.version }}
7171 type=semver,pattern={{major}},value=${{ steps.vars.outputs.version }}
72-
73- # Build and push the image defined in wireport/Dockerfile
74- - name : Build & push (GHA + registry cache)
72+ # Warm Docker cache with previous image
73+ - name : Warm Docker cache with previous image
74+ run : docker pull ghcr.io/${{ steps.repo_owner.outputs.lowercase }}/wireport:latest || true
75+ # Build and push with inline cache
76+ - name : Build and push (inline cache)
7577 uses : docker/build-push-action@v5
7678 with :
7779 context : .
7880 file : ./Dockerfile
7981 push : true
8082 platforms : linux/amd64,linux/arm64
81- tags : ${{ steps.meta.outputs.tags }}
83+ # keep all semantic-version tags *and* add :latest
84+ tags : |
85+ ${{ steps.meta.outputs.tags }}
86+ ghcr.io/${{ steps.repo_owner.outputs.lowercase }}/wireport:latest
8287 labels : ${{ steps.meta.outputs.labels }}
88+ # cache: previous :latest → inline in new image
8389 cache-from : |
84- type=gha,scope=wireport
85- type=registry,ref=ghcr.io/${{ steps.repo_owner.outputs.lowercase }}/wireport-buildcache:cache
86- cache-to : |
87- type=gha,mode=max,scope=wireport
88- type=registry,ref=ghcr.io/${{ steps.repo_owner.outputs.lowercase }}/wireport-buildcache:cache,mode=max,compression=zstd
90+ type=registry,ref=ghcr.io/${{ steps.repo_owner.outputs.lowercase }}/wireport:latest
91+ cache-to : type=inline
8992 build-args : |
9093 BUILDKIT_INLINE_CACHE=1
0 commit comments