Skip to content

Commit

Permalink
ci: disable provenance in docker bake
Browse files Browse the repository at this point in the history
Signed-off-by: David van der Spek <vanderspek.david@gmail.com>
  • Loading branch information
davidspek committed Sep 28, 2023
1 parent 98ccda8 commit 1d67796
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -46,8 +46,8 @@ jobs:

build:
permissions:
id-token: 'write' # to write to GHCR
packages: 'write' # to write to GHCR
id-token: write # to write to GHCR
packages: write # to write to GHCR

runs-on: ubuntu-latest
needs:
Expand Down Expand Up @@ -92,6 +92,7 @@ jobs:
uses: docker/bake-action@v4
with:
targets: artifact-all
provenance: false
-
name: Move artifacts
run: |
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -7,6 +7,7 @@ on:

env:
GHCR_SLUG: ghcr.io/${{ github.repository_owner }}/distribution
DOCKERHUB_SLUG: distribution/distribution

permissions:
contents: read # to fetch code (actions/checkout)
Expand Down Expand Up @@ -37,7 +38,7 @@ jobs:

build:
permissions:
contents: write # to create GitHub release (softprops/action-gh-release)
contents: write # to create GitHub release (cycjimmy/semantic-release-action)
id-token: write # to write to GHCR
packages: write # to write to GHCR

Expand All @@ -53,9 +54,10 @@ jobs:
uses: cycjimmy/semantic-release-action@v4
id: semantic_release
with:
dry_run: true
semantic_version: 22.0.5
extra_plugins: |
conventional-changelog-conventionalcommits
dry_run: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
Expand Down Expand Up @@ -99,6 +101,7 @@ jobs:
uses: docker/bake-action@v4
with:
targets: artifact-all
provenance: false
- name: Move artifacts
run: |
mv ./bin/**/* ./bin/
Expand All @@ -119,6 +122,7 @@ jobs:
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
with:
semantic_version: 22.0.5
extra_plugins: |
conventional-changelog-conventionalcommits
env:
Expand Down

0 comments on commit 1d67796

Please sign in to comment.