ci: 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 12:19:24 +01:00
parent 7e1a59e189
commit a745724f2a
No known key found for this signature in database
GPG Key ID: ADE44D8C9D44FBE4
3 changed files with 15 additions and 14 deletions

View File

@ -23,9 +23,6 @@ jobs:
releaser: releaser:
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
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
@ -34,7 +31,7 @@ jobs:
driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }} driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }}
- -
name: Build name: Build
uses: docker/bake-action@v5 uses: docker/bake-action@v6
with: with:
files: | files: |
docker-bake.hcl docker-bake.hcl
@ -56,8 +53,9 @@ jobs:
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- -
name: Build name: Build
uses: docker/bake-action@v5 uses: docker/bake-action@v6
with: with:
source: .
files: | files: |
docker-bake.hcl docker-bake.hcl
targets: release targets: release
@ -66,8 +64,9 @@ jobs:
*.cache-to=type=gha,scope=build,mode=max *.cache-to=type=gha,scope=build,mode=max
- -
name: Check Cloudfront config name: Check Cloudfront config
uses: docker/bake-action@v5 uses: docker/bake-action@v6
with: with:
source: .
targets: aws-cloudfront-update targets: aws-cloudfront-update
env: env:
DRY_RUN: true DRY_RUN: true
@ -99,20 +98,18 @@ jobs:
- dockerfile-lint - dockerfile-lint
- path-warnings - path-warnings
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: Validate name: Validate
uses: docker/bake-action@v5 uses: docker/bake-action@v6
with: with:
files: | files: |
docker-bake.hcl docker-bake.hcl
targets: ${{ matrix.target }} targets: ${{ matrix.target }}
set: | set: |
*.args.BUILDKIT_CONTEXT_KEEP_GIT_DIR=1
*.cache-to=type=gha,scope=validate-${{ matrix.target }},mode=max *.cache-to=type=gha,scope=validate-${{ matrix.target }},mode=max
*.cache-from=type=gha,scope=validate-${{ matrix.target }} *.cache-from=type=gha,scope=validate-${{ matrix.target }}
*.cache-from=type=gha,scope=build *.cache-from=type=gha,scope=build

View File

@ -90,8 +90,9 @@ jobs:
driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }} driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }}
- -
name: Build website name: Build website
uses: docker/bake-action@v5 uses: docker/bake-action@v6
with: with:
source: .
files: | files: |
docker-bake.hcl docker-bake.hcl
targets: release targets: release
@ -127,8 +128,9 @@ jobs:
- -
name: Update S3 config name: Update S3 config
if: ${{ env.DOCS_S3_BUCKET != '' && env.DOCS_S3_CONFIG != '' }} if: ${{ env.DOCS_S3_BUCKET != '' && env.DOCS_S3_CONFIG != '' }}
uses: docker/bake-action@v5 uses: docker/bake-action@v6
with: with:
source: .
files: | files: |
docker-bake.hcl docker-bake.hcl
targets: aws-s3-update-config targets: aws-s3-update-config
@ -141,8 +143,9 @@ jobs:
- -
name: Update Cloudfront config name: Update Cloudfront config
if: ${{ env.DOCS_CLOUDFRONT_ID != '' }} if: ${{ env.DOCS_CLOUDFRONT_ID != '' }}
uses: docker/bake-action@v5 uses: docker/bake-action@v6
with: with:
source: .
files: | files: |
docker-bake.hcl docker-bake.hcl
targets: aws-cloudfront-update targets: aws-cloudfront-update

View File

@ -90,8 +90,9 @@ jobs:
driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }} driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }}
- -
name: Validate name: Validate
uses: docker/bake-action@v5 uses: docker/bake-action@v6
with: with:
source: .
files: | files: |
docker-bake.hcl docker-bake.hcl
targets: validate-upstream targets: validate-upstream