Skip to content

Commit

Permalink
prepare workflows for signing releases
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <[email protected]>
  • Loading branch information
cpanato committed Oct 4, 2022
1 parent 3936526 commit 2431f6f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci-goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,19 @@ jobs:
check-goreleaser:
name: Check GoReleaser Configuration
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install cosign
uses: sigstore/cosign-installer@v2

- name: Install syft
uses: anchore/sbom-action/[email protected]

- name: Setup QEMU
uses: docker/setup-qemu-action@v2
with:
Expand All @@ -44,4 +51,6 @@ jobs:
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: --snapshot --rm-dist --timeout 1h
args: --snapshot --rm-dist --skip-sign --timeout 2h
env:
COSIGN_EXPERIMENTAL: true
14 changes: 13 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,23 @@ jobs:
name: Release
runs-on: ubuntu-20.04

permissions:
id-token: write
packages: write
contents: write

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install cosign
uses: sigstore/cosign-installer@v2

- name: Install syft
uses: anchore/sbom-action/[email protected]

- name: Setup QEMU
uses: docker/setup-qemu-action@v2
with:
Expand Down Expand Up @@ -45,6 +56,7 @@ jobs:
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: release --rm-dist --timeout 90m
args: release --rm-dist --timeout 2h
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COSIGN_EXPERIMENTAL: true

0 comments on commit 2431f6f

Please sign in to comment.