mirror of
https://github.com/docker/build-push-action.git
synced 2025-04-19 01:46:45 +00:00
check BuildKit compatibility before setting default provenance opts
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
0149503e26
commit
74f883a069
4 changed files with 165 additions and 13 deletions
37
.github/workflows/ci.yml
vendored
37
.github/workflows/ci.yml
vendored
|
@ -491,7 +491,39 @@ jobs:
|
|||
cache-from: type=gha,scope=nocachefilter
|
||||
cache-to: type=gha,scope=nocachefilter,mode=max
|
||||
|
||||
attests:
|
||||
attests-compat:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- buildx: latest
|
||||
buildkit: moby/buildkit:buildx-stable-1
|
||||
- buildx: latest
|
||||
buildkit: moby/buildkit:v0.10.6
|
||||
- buildx: v0.9.1
|
||||
buildkit: moby/buildkit:buildx-stable-1
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
with:
|
||||
version: ${{ matrix.buildx }}
|
||||
driver-opts: |
|
||||
network=host
|
||||
image=${{ matrix.buildkit }}
|
||||
-
|
||||
name: Build
|
||||
uses: ./
|
||||
with:
|
||||
context: ./test/go
|
||||
file: ./test/go/Dockerfile
|
||||
outputs: type=cacheonly
|
||||
|
||||
sbom:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
@ -506,9 +538,6 @@ jobs:
|
|||
image: registry:2
|
||||
ports:
|
||||
- 5000:5000
|
||||
env:
|
||||
BUILDX_VERSION: v0.10.0-rc2 # TODO: remove when Buildx v0.10.0 is released
|
||||
BUILDKIT_IMAGE: moby/buildkit:v0.11.0-rc3 # TODO: remove when BuildKit v0.11.0 is released
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue