File tree Expand file tree Collapse file tree 7 files changed +12
-31
lines changed Expand file tree Collapse file tree 7 files changed +12
-31
lines changed Original file line number Diff line number Diff line change @@ -174,9 +174,8 @@ and use the `cwd://` prefix for the metadata Bake file:
174174
175175``` yml
176176 - name : Build
177- uses : docker/bake-action@v4
177+ uses : docker/bake-action@v6
178178 with :
179- source : " ${{ github.server_url }}/${{ github.repository }}.git#${{ github.ref }}"
180179 files : |
181180 ./docker-bake.hcl
182181 cwd://${{ steps.meta.outputs.bake-file }}
Original file line number Diff line number Diff line change 7272 docker :
7373 runs-on : ubuntu-latest
7474 steps :
75- - name : Checkout
76- uses : actions/checkout@v4
77-
7875 - name : Login to Docker Hub
7976 uses : docker/login-action@v3
8077 with :
@@ -91,12 +88,12 @@ jobs:
9188 images : ${{ env.IMAGE_NAME }}
9289
9390 - name : Build
94- uses : docker/bake-action@v5
91+ uses : docker/bake-action@v6
9592 with :
9693 files : |
9794 ./docker-bake.hcl
98- ${{ steps.meta.outputs.bake-file-tags }}
99- ${{ steps.meta.outputs.bake-file-annotations }}
95+ cwd:// ${{ steps.meta.outputs.bake-file-tags }}
96+ cwd:// ${{ steps.meta.outputs.bake-file-annotations }}
10097 push : true
10198` ` `
10299
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ or [Docker Buildx Bake](https://github.com/marketplace/actions/docker-buildx-bak
2020GitHub Actions:
2121
2222- ` docker/build-push-action@v6 `
23- - ` docker/bake-action@v5 `
23+ - ` docker/bake-action@v6 `
2424
2525To view the job summary, open the details page for the job in GitHub after the
2626job has finished. The summary is available for both failed and successful
Original file line number Diff line number Diff line change 7878 docker:
7979 runs-on: ubuntu-latest
8080 steps:
81- - name: Checkout
82- uses: actions/checkout@v4
83-
8481 - name: Login to Docker Hub
8582 uses: docker/login-action@v3
8683 with:
@@ -91,12 +88,12 @@ jobs:
9188 uses: docker/setup-buildx-action@v3
9289
9390 - name: Validate build configuration
94- uses: docker/bake-action@v5
91+ uses: docker/bake-action@v6
9592 with:
9693 targets: validate-build
9794
9895 - name: Build
99- uses: docker/bake-action@v5
96+ uses: docker/bake-action@v6
10097 with:
10198 targets: build
10299 push: true
Original file line number Diff line number Diff line change @@ -350,9 +350,6 @@ jobs:
350350 platform=${{ matrix.platform }}
351351 echo "PLATFORM_PAIR=${platform//\/ /-}" >> $GITHUB_ENV
352352
353- - name: Checkout
354- uses: actions/checkout@v4
355-
356353 - name: Download meta bake definition
357354 uses: actions/download-artifact@v4
358355 with:
@@ -373,11 +370,11 @@ jobs:
373370
374371 - name: Build
375372 id: bake
376- uses: docker/bake-action@v5
373+ uses: docker/bake-action@v6
377374 with:
378375 files: |
379376 ./docker-bake.hcl
380- /tmp/bake-meta.json
377+ cwd:// /tmp/bake-meta.json
381378 targets: image
382379 set: |
383380 *.tags=
Original file line number Diff line number Diff line change @@ -56,14 +56,11 @@ jobs:
5656 docker:
5757 runs-on: ubuntu-latest
5858 steps:
59- - name: Checkout
60- uses: actions/checkout@v4
61-
6259 - name: Set up Docker Buildx
6360 uses: docker/setup-buildx-action@v3
6461
6562 - name: Build
66- uses: docker/bake-action@v5
63+ uses: docker/bake-action@v6
6764 env:
6865 SOURCE_DATE_EPOCH: 0
6966` ` `
@@ -115,17 +112,14 @@ jobs:
115112 docker:
116113 runs-on: ubuntu-latest
117114 steps:
118- - name: Checkout
119- uses: actions/checkout@v4
120-
121115 - name: Set up Docker Buildx
122116 uses: docker/setup-buildx-action@v3
123117
124118 - name: Get Git commit timestamps
125119 run: echo "TIMESTAMP=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
126120
127121 - name: Build
128- uses: docker/bake-action@v5
122+ uses: docker/bake-action@v6
129123 env:
130124 SOURCE_DATE_EPOCH: ${{ env.TIMESTAMP }}
131125` ` `
Original file line number Diff line number Diff line change @@ -198,9 +198,6 @@ jobs:
198198 docker:
199199 runs-on: ubuntu-latest
200200 steps:
201- - name: Checkout
202- uses: actions/checkout@v4
203-
204201 - name: Set up SSH
205202 uses: MrSquaare/ssh-setup-action@2d028b70b5e397cf8314c6eaea229a6c3e34977a # v3.1.0
206203 with:
@@ -209,7 +206,7 @@ jobs:
209206 private-key-name: github-ppk
210207
211208 - name: Build
212- uses: docker/bake-action@v5
209+ uses: docker/bake-action@v6
213210 with:
214211 set: |
215212 *.ssh=default
You can’t perform that action at this time.
0 commit comments