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 3, 2022
1 parent 3936526 commit 56430b3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/ci-goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,24 @@ jobs:
check-goreleaser:
name: Check GoReleaser Configuration
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 All @@ -44,4 +56,6 @@ jobs:
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: --snapshot --rm-dist --timeout 1h
args: --snapshot --rm-dist --timeout 120m
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 120m
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COSIGN_EXPERIMENTAL: true

0 comments on commit 56430b3

Please sign in to comment.