Skip to content

Commit

Permalink
Set GO1.16.9 as default GO version for goreleaser (#698)
Browse files Browse the repository at this point in the history
related to #697

Github virtual environment Ubuntu20.04 has [cached several Go tools](https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md#go).

GoReleaser doesn't accept `builds.gobinary` [parameter](https://goreleaser.com/customization/build/) and still uses default GO1.15.

In order to fixing dependabot alerts, I would like to bump up the versions of some modules
that are already [required to be compiled in GO 1.16](https://github.com/k8gb-io/k8gb/runs/4009137543?check_suite_focus=true#step:3:64).

I'm introducing setup-go action which is switching GO to desired version.

Signed-off-by: kuritka <kuritka@gmail.com>
  • Loading branch information
kuritka committed Oct 26, 2021
1 parent 01b913a commit b8e410f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/terratest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
steps:
- uses: actions/checkout@v1

- uses: actions/setup-go@v2
with:
go-version: "1.16.9"

- name: Build artifacts
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/upgrade-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
steps:
- uses: actions/checkout@v1

- uses: actions/setup-go@v2
with:
go-version: "1.16.9"

- name: Build artifacts
uses: goreleaser/goreleaser-action@v2
with:
Expand Down

0 comments on commit b8e410f

Please sign in to comment.