update bake-action to v6

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2025-01-08 13:16:35 +01:00
parent 6187bb12a9
commit d973aa3819
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4
5 changed files with 9 additions and 17 deletions

View File

@ -22,12 +22,9 @@ jobs:
- 20 - 20
- 18 - 18
steps: steps:
-
name: Checkout
uses: actions/checkout@v4
- -
name: Build name: Build
uses: docker/bake-action@v5 uses: docker/bake-action@v6
with: with:
targets: build targets: build
env: env:

View File

@ -13,15 +13,12 @@ jobs:
publish: publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
-
name: Checkout
uses: actions/checkout@v4
- -
name: Set up Docker Buildx name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- -
name: Publish name: Publish
uses: docker/bake-action@v5 uses: docker/bake-action@v6
with: with:
targets: publish targets: publish
env: env:

View File

@ -28,12 +28,9 @@ jobs:
- 20 - 20
- 18 - 18
steps: steps:
-
name: Checkout
uses: actions/checkout@v4
- -
name: Test name: Test
uses: docker/bake-action@v5 uses: docker/bake-action@v6
with: with:
targets: test-coverage targets: test-coverage
env: env:

View File

@ -25,7 +25,7 @@ jobs:
- -
name: List targets name: List targets
id: generate id: generate
uses: docker/bake-action/subaction/list-targets@v5 uses: docker/bake-action/subaction/list-targets@v6
with: with:
target: validate target: validate
@ -38,11 +38,8 @@ jobs:
matrix: matrix:
target: ${{ fromJson(needs.prepare.outputs.targets) }} target: ${{ fromJson(needs.prepare.outputs.targets) }}
steps: steps:
-
name: Checkout
uses: actions/checkout@v4
- -
name: Validate name: Validate
uses: docker/bake-action@v5 uses: docker/bake-action@v6
with: with:
targets: ${{ matrix.target }} targets: ${{ matrix.target }}

View File

@ -30,6 +30,7 @@ group "validate" {
target "_common" { target "_common" {
args = { args = {
BUILDKIT_CONTEXT_KEEP_GIT_DIR = 1
NODE_VERSION = NODE_VERSION NODE_VERSION = NODE_VERSION
} }
} }
@ -76,6 +77,7 @@ target "dockerfile-validate" {
"./hack/dockerfiles/license.Dockerfile" "./hack/dockerfiles/license.Dockerfile"
] ]
} }
inherits = ["_common"]
name = "dockerfile-validate-${md5(dockerfile)}" name = "dockerfile-validate-${md5(dockerfile)}"
dockerfile = dockerfile dockerfile = dockerfile
call = "check" call = "check"
@ -115,12 +117,14 @@ target "publish" {
} }
target "license-validate" { target "license-validate" {
inherits = ["_common"]
dockerfile = "./hack/dockerfiles/license.Dockerfile" dockerfile = "./hack/dockerfiles/license.Dockerfile"
target = "validate" target = "validate"
output = ["type=cacheonly"] output = ["type=cacheonly"]
} }
target "license-update" { target "license-update" {
inherits = ["_common"]
dockerfile = "./hack/dockerfiles/license.Dockerfile" dockerfile = "./hack/dockerfiles/license.Dockerfile"
target = "update" target = "update"
output = ["."] output = ["."]