-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* signing Signed-off-by: Benji Visser <[email protected]> * update goreleaser Signed-off-by: Benji Visser <[email protected]> * install syft Signed-off-by: Benji Visser <[email protected]> * tags Signed-off-by: Benji Visser <[email protected]> * 1.6.10 Signed-off-by: Benji Visser <[email protected]> * cosign Signed-off-by: Benji Visser <[email protected]> * keyless Signed-off-by: Benji Visser <[email protected]> * update Signed-off-by: Benji Visser <[email protected]> * permissions Signed-off-by: Benji Visser <[email protected]> * test job Signed-off-by: Benji Visser <[email protected]> --------- Signed-off-by: Benji Visser <[email protected]>
- Loading branch information
Showing
4 changed files
with
52 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,12 @@ on: | |
push: | ||
tags: | ||
- '*' | ||
|
||
permissions: | ||
contents: write # needed to write releases | ||
id-token: write # needed for keyless signing | ||
packages: write # needed for ghcr access | ||
|
||
jobs: | ||
test: | ||
runs-on: "ubuntu-latest" | ||
|
@@ -17,7 +23,9 @@ jobs: | |
run: go install github.com/onsi/ginkgo/v2/ginkgo@latest | ||
- name: Test | ||
run: ginkgo ./... | ||
|
||
release: | ||
needs: [test] | ||
env: | ||
GO111MODULE: on | ||
name: Release | ||
|
@@ -26,17 +34,27 @@ jobs: | |
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Version | ||
run: echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version-file: 'go.mod' | ||
go-version: 1.19.x | ||
|
||
- name: Install syft | ||
run: go install github.com/anchore/syft/cmd/syft@latest | ||
|
||
- name: Install cosign | ||
uses: sigstore/[email protected] | ||
|
||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v3 | ||
uses: goreleaser/goreleaser-action@v4 | ||
with: | ||
distribution: goreleaser | ||
version: latest | ||
args: release --rm-dist | ||
args: release --clean | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.6.6 | ||
1.6.10 |