Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit b1dc8f6

Browse files
authored
Fix GHA workflows (#154)
* Fix GHA workflows
1 parent 0157c4a commit b1dc8f6

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/go.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
name: Go Build & Test
2+
23
on:
34
push:
45
branches:
56
- 'master'
67
pull_request:
78
branches:
89
- '*'
10+
11+
env:
12+
KUBEBUILDER_VERSION: 2.3.2
13+
914
jobs:
1015
build:
1116
runs-on: ubuntu-latest
@@ -17,11 +22,11 @@ jobs:
1722
go-version: 1.16.9
1823
- name: Install kubebuilder
1924
run: |
20-
curl -L https://github.com/kubernetes-sigs/kubebuilder/releases/download/v2.3.1/kubebuilder_2.3.1_linux_amd64.tar.gz -o /tmp/kb.tgz
25+
curl -L https://github.com/kubernetes-sigs/kubebuilder/releases/download/v${{ env.KUBEBUILDER_VERSION }}/kubebuilder_${{ env.KUBEBUILDER_VERSION }}_linux_amd64.tar.gz -o /tmp/kb.tgz
2126
tar zxf /tmp/kb.tgz -C /tmp/
2227
- name: Run GoReleaser
2328
env:
24-
KUBEBUILDER_ASSETS: /tmp/kubebuilder_2.3.1_linux_amd64/bin/
25-
uses: goreleaser/goreleaser-action@v2.8.0
29+
KUBEBUILDER_ASSETS: /tmp/kubebuilder_${{ env.KUBEBUILDER_VERSION }}_linux_amd64/bin/
30+
uses: goreleaser/goreleaser-action@v3.0.0
2631
with:
2732
args: release --snapshot --skip-publish --rm-dist --skip-sign

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010

1111
env:
1212
DOCKER_REPO_NAME: hashicorp/terraform-k8s
13-
KUBEBUILDER_VERSION: 3.3.0
13+
KUBEBUILDER_VERSION: 2.3.2
1414
RELEASE_NOTES: /tmp/release-notes.txt
1515

1616
jobs:

0 commit comments

Comments
 (0)