Skip to content

Commit e36200f

Browse files
authored
Merge pull request #546 from crazy-max/bake-v6
update bake-action to v6
2 parents 7811a01 + d973aa3 commit e36200f

File tree

5 files changed

+9
-17
lines changed

5 files changed

+9
-17
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@ jobs:
2222
- 20
2323
- 18
2424
steps:
25-
-
26-
name: Checkout
27-
uses: actions/checkout@v4
2825
-
2926
name: Build
30-
uses: docker/bake-action@v5
27+
uses: docker/bake-action@v6
3128
with:
3229
targets: build
3330
env:

.github/workflows/publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,12 @@ jobs:
1313
publish:
1414
runs-on: ubuntu-latest
1515
steps:
16-
-
17-
name: Checkout
18-
uses: actions/checkout@v4
1916
-
2017
name: Set up Docker Buildx
2118
uses: docker/setup-buildx-action@v3
2219
-
2320
name: Publish
24-
uses: docker/bake-action@v5
21+
uses: docker/bake-action@v6
2522
with:
2623
targets: publish
2724
env:

.github/workflows/test.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,9 @@ jobs:
2828
- 20
2929
- 18
3030
steps:
31-
-
32-
name: Checkout
33-
uses: actions/checkout@v4
3431
-
3532
name: Test
36-
uses: docker/bake-action@v5
33+
uses: docker/bake-action@v6
3734
with:
3835
targets: test-coverage
3936
env:

.github/workflows/validate.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
-
2626
name: List targets
2727
id: generate
28-
uses: docker/bake-action/subaction/list-targets@v5
28+
uses: docker/bake-action/subaction/list-targets@v6
2929
with:
3030
target: validate
3131

@@ -38,11 +38,8 @@ jobs:
3838
matrix:
3939
target: ${{ fromJson(needs.prepare.outputs.targets) }}
4040
steps:
41-
-
42-
name: Checkout
43-
uses: actions/checkout@v4
4441
-
4542
name: Validate
46-
uses: docker/bake-action@v5
43+
uses: docker/bake-action@v6
4744
with:
4845
targets: ${{ matrix.target }}

docker-bake.hcl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ group "validate" {
3030

3131
target "_common" {
3232
args = {
33+
BUILDKIT_CONTEXT_KEEP_GIT_DIR = 1
3334
NODE_VERSION = NODE_VERSION
3435
}
3536
}
@@ -76,6 +77,7 @@ target "dockerfile-validate" {
7677
"./hack/dockerfiles/license.Dockerfile"
7778
]
7879
}
80+
inherits = ["_common"]
7981
name = "dockerfile-validate-${md5(dockerfile)}"
8082
dockerfile = dockerfile
8183
call = "check"
@@ -115,12 +117,14 @@ target "publish" {
115117
}
116118

117119
target "license-validate" {
120+
inherits = ["_common"]
118121
dockerfile = "./hack/dockerfiles/license.Dockerfile"
119122
target = "validate"
120123
output = ["type=cacheonly"]
121124
}
122125

123126
target "license-update" {
127+
inherits = ["_common"]
124128
dockerfile = "./hack/dockerfiles/license.Dockerfile"
125129
target = "update"
126130
output = ["."]

0 commit comments

Comments
 (0)