Skip to content

Commit

Permalink
Add attestation for binary zip
Browse files Browse the repository at this point in the history
  • Loading branch information
vickunwu committed Jan 16, 2025
1 parent c0d0266 commit 58ee7a0
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ jobs:

- name: Log In to DockerHub
uses: docker/login-action@v3
env:
dockerhub: ${{secrets.DOCKERHUB_USERNAME}}${{secrets.DOCKERHUB_TOKEN}}
if: ${{ env.dockerhub != '' }}
with:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_TOKEN}}
Expand Down Expand Up @@ -128,14 +125,15 @@ jobs:
skip-extraction: ${{ steps.cargo-cache.outputs.cache-hit }} && ${{ steps.apt-cache.outputs.cache-hit }}

- name: Build Artifact
uses: docker/bake-action@v5
uses: docker/bake-action@v6
env:
TARGET: ${{matrix.target}}
DOCKER_BUILD_RECORD_UPLOAD: false
ARTIFACT_REPO: ghcr.io/${{github.repository}}
BUILD_ENV: ${{matrix.build_env}}
ZIG_VERSION: ${{ steps.zig-version.outputs.zig_version }}
with:
source: .
files: |
./docker-bake.hcl
${{ steps.meta.outputs.bake-file }}
Expand Down Expand Up @@ -226,6 +224,10 @@ jobs:

release:
name: Release
permissions:
id-token: write
contents: read
attestations: write
if: github.event_name == 'push' || inputs.Release
needs: [linux, windows, macos]
runs-on: ubuntu-latest
Expand Down Expand Up @@ -260,6 +262,13 @@ jobs:
compress_files "$dir_name"
done
- name: Attest
uses: actions/attest-build-provenance@v2
with:
subject-path: |
./archive/**/*.tar.gz
./archive/**/*.zip
- name: Release
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit 58ee7a0

Please sign in to comment.