Merge pull request 'ci: drop the build cache from tag image builds' (#130) from ci/tag-path-hardening into main
This commit was merged in pull request #130.
This commit is contained in:
@@ -236,17 +236,16 @@ jobs:
|
|||||||
username: jcoffey-dev
|
username: jcoffey-dev
|
||||||
password: ${{ secrets.GITEA_TOKEN }}
|
password: ${{ secrets.GITEA_TOKEN }}
|
||||||
# Attestations off: they add manifests of their own, and the index
|
# Attestations off: they add manifests of their own, and the index
|
||||||
# should hold the two images and nothing else. The GitHub Actions cache
|
# should hold the two images and nothing else. No build cache: GitHub
|
||||||
# keeps the dependency layer (`cargo chef cook`), which only a
|
# scopes a tag run's cache to that tag, so the next release could never
|
||||||
# dependency change alters, between releases.
|
# read it, and each one would park several GB in the repository's 10 GB
|
||||||
|
# cache and evict main's cargo cache.
|
||||||
- uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
|
- uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/${{ matrix.arch }}
|
platforms: linux/${{ matrix.arch }}
|
||||||
provenance: false
|
provenance: false
|
||||||
sbom: false
|
sbom: false
|
||||||
cache-from: type=gha,scope=image-${{ matrix.arch }}
|
|
||||||
cache-to: type=gha,mode=max,scope=image-${{ matrix.arch }}
|
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.IMAGE }}:${{ env.VERSION }}-${{ matrix.arch }}
|
${{ env.IMAGE }}:${{ env.VERSION }}-${{ matrix.arch }}
|
||||||
|
|||||||
Reference in New Issue
Block a user