Skip to content

Commit

Permalink
Merge pull request #5634 from crazy-max/bake-v6
Browse files Browse the repository at this point in the history
update bake-action to v6
  • Loading branch information
tonistiigi authored Jan 11, 2025
2 parents fe09265 + 73069bd commit ef0f822
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 35 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ jobs:
tags: ${{ steps.set.outputs.tags }}
includes: ${{ steps.set.outputs.includes }}
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down Expand Up @@ -89,7 +83,7 @@ jobs:
});
-
name: Build
uses: docker/bake-action@v5
uses: docker/bake-action@v6
with:
targets: integration-tests-base
set: |
Expand Down Expand Up @@ -155,7 +149,7 @@ jobs:
buildkitd-flags: --debug
-
name: Build test image
uses: docker/bake-action@v5
uses: docker/bake-action@v6
with:
targets: integration-tests
set: |
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/buildkit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,6 @@ jobs:
# required to check out the repository
contents: read
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -166,7 +161,7 @@ jobs:
buildkitd-flags: --debug
-
name: Run
uses: docker/bake-action@v5
uses: docker/bake-action@v6
with:
targets: govulncheck
env:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/test-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ jobs:
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -51,7 +48,7 @@ jobs:
buildkitd-flags: --debug
-
name: Build
uses: docker/bake-action@v5
uses: docker/bake-action@v6
with:
provenance: false
targets: binaries-for-test
Expand Down Expand Up @@ -240,9 +237,6 @@ jobs:
- linux/amd64
- linux/arm64
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -255,7 +249,7 @@ jobs:
buildkitd-flags: --debug
-
name: Build
uses: docker/bake-action@v5
uses: docker/bake-action@v6
with:
targets: integration-tests-base
set: |
Expand Down
21 changes: 8 additions & 13 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,17 @@ jobs:
prepare:
runs-on: ubuntu-24.04
outputs:
targets: ${{ steps.targets.outputs.matrix }}
targets: ${{ steps.generate.outputs.targets }}
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Matrix
id: targets
run: |
echo "matrix=$(docker buildx bake validate --print | jq -cr '.target | keys')" >> $GITHUB_OUTPUT
name: List targets
id: generate
uses: docker/bake-action/subaction/list-targets@v6
with:
target: validate

validate:
runs-on: ubuntu-24.04
Expand All @@ -49,9 +50,6 @@ jobs:
if [ "$GITHUB_REPOSITORY" = "moby/buildkit" ]; then
echo "GOLANGCI_LINT_MULTIPLATFORM=1" >> $GITHUB_ENV
fi
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -61,16 +59,13 @@ jobs:
buildkitd-flags: --debug
-
name: Validate
uses: docker/bake-action@v5
uses: docker/bake-action@v6
with:
targets: ${{ matrix.target }}

archutil-arm64:
runs-on: ubuntu-24.04
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -83,7 +78,7 @@ jobs:
buildkitd-flags: --debug
-
name: Validate
uses: docker/bake-action@v5
uses: docker/bake-action@v6
with:
targets: validate-archutil
set: |
Expand Down
1 change: 1 addition & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ target "validate-dockerfile" {
]
}
name = "validate-dockerfile-${md5(dockerfile)}"
inherits = ["_common"]
dockerfile = dockerfile
call = "check"
}
Expand Down

0 comments on commit ef0f822

Please sign in to comment.