File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -35,33 +35,26 @@ jobs:
3535 username : ${{ github.actor }}
3636 password : ${{ secrets.GITHUB_TOKEN }}
3737
38- - id : build-meta
39- name : Docker meta
40- uses : docker/metadata-action@v5
41- with :
42- images : ghcr.io/${{ github.repository }}
43- tags : type=sha
44-
4538 # Uses a single build cache image per-architecture.
4639 - id : cache-meta
4740 name : Docker meta
4841 uses : docker/metadata-action@v5
4942 with :
5043 images : ghcr.io/${{ github.repository }}
51- tags : raw=buildcache-${{ runner.arch }}
44+ tags : type= raw,value =buildcache-${{ runner.arch }}
5245
5346 - id : get-registry
54- name : Get facts about the current run
47+ name : Get the sanitized registry name
5548 run : |
56- echo "registry=$(echo '${{ steps.build -meta.outputs.tags }}' | cut -f1 -d:)" | tee -a "$GITHUB_OUTPUT"
49+ echo "registry=$(echo '${{ steps.cache -meta.outputs.tags }}' | cut -f1 -d:)" | tee -a "$GITHUB_OUTPUT"
5750
5851 - id : build
5952 name : Build/push the arch-specific image
6053 uses : docker/build-push-action@v6
6154 with :
6255 cache-from : type=registry,ref=${{ steps.cache-meta.outputs.tags }}
6356 cache-to : type=registry,ref=${{ steps.cache-meta.outputs.tags }},mode=max
64- labels : ${{ steps.build -meta.outputs.labels }}
57+ labels : ${{ steps.cache -meta.outputs.labels }}
6558 provenance : mode=max
6659 sbom : true
6760 tags : ${{ steps.get-registry.outputs.registry }}
You can’t perform that action at this time.
0 commit comments