-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
310f332
commit 28d96d7
Showing
1 changed file
with
12 additions
and
19 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 |
---|---|---|
|
@@ -11,23 +11,15 @@ jobs: | |
name: Build | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Set up Go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
check-latest: true | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Cache Go modules | ||
uses: actions/[email protected] | ||
id: go-mod-cache | ||
- name: Set up Go | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
go-version-file: go.mod | ||
check-latest: true | ||
cache: true | ||
|
||
- name: Get dependencies | ||
run: make download | ||
|
@@ -72,11 +64,17 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go | ||
uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version-file: ./go.mod | ||
check-latest: true | ||
cache: true | ||
|
||
- name: Install cosign | ||
uses: sigstore/[email protected] | ||
|
@@ -86,11 +84,6 @@ jobs: | |
- name: Install Syft | ||
uses: anchore/sbom-action/[email protected] | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Login to Container registries | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: | | ||
|