ci: update bake-action to v6 (#4554)

This commit is contained in:
Milos Gajdos 2025-01-10 10:06:22 +00:00 committed by GitHub
commit 9dff0cbf9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 13 additions and 20 deletions

View File

@ -66,11 +66,6 @@ jobs:
needs:
- test
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Docker meta
id: meta
@ -118,7 +113,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build artifacts
uses: docker/bake-action@v5
uses: docker/bake-action@v6
with:
targets: artifact-all
-
@ -146,11 +141,11 @@ jobs:
if-no-files-found: error
-
name: Build image
uses: docker/bake-action@v5
uses: docker/bake-action@v6
with:
files: |
./docker-bake.hcl
${{ steps.meta.outputs.bake-file }}
cwd://${{ steps.meta.outputs.bake-file }}
targets: image-all
push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
-

View File

@ -15,14 +15,9 @@ jobs:
run-conformance-test:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Build image
uses: docker/bake-action@v5
uses: docker/bake-action@v6
with:
targets: image-local
-

View File

@ -13,6 +13,7 @@ on:
- dockerfiles/docs.Dockerfile
- docs/**
workflow_dispatch:
pull_request:
jobs:
# Build job
@ -22,28 +23,28 @@ jobs:
contents: read
# Build the site and upload artifacts using actions/upload-pages-artifact
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build docs
uses: docker/bake-action@v5
uses: docker/bake-action@v6
with:
files: |
docker-bake.hcl
targets: docs-export
provenance: false
set: |
*.cache-from=type=gha,scope=docs
*.cache-to=type=gha,scope=docs,mode=max
- name: Fix permissions
run: |
chmod -c -R +rX "./build/docs" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
@ -51,6 +52,7 @@ jobs:
# Deploy job
deploy:
if: github.event_name != 'pull_request'
# Add a dependency to the build job
needs: build

View File

@ -25,8 +25,9 @@ jobs:
fetch-depth: 0
-
name: Build image
uses: docker/bake-action@v5
uses: docker/bake-action@v6
with:
source: .
targets: image-local
-
name: Start distribution server