Skip to content

Commit 1a2dbbe

Browse files
committed
fix workflow
1 parent fc93230 commit 1a2dbbe

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,31 @@ jobs:
3434
docker:
3535
name: Build & Push Docker image (release only)
3636
runs-on: ubuntu-latest
37+
needs: test
3738
if: github.event_name == 'release' && github.event.action == 'published'
3839
steps:
3940
- name: Checkout (release tag)
4041
uses: actions/checkout@v4
4142
with:
4243
ref: ${{ github.event.release.tag_name }}
4344

45+
- name: Setup Go
46+
uses: actions/setup-go@v5
47+
with:
48+
go-version-file: go.mod
49+
cache: true
50+
51+
- name: Install codegen tools
52+
run: |
53+
set -euo pipefail
54+
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.16.5
55+
go install k8s.io/code-generator/cmd/client-gen@v0.35.0
56+
go install k8s.io/code-generator/cmd/lister-gen@v0.35.0
57+
go install k8s.io/code-generator/cmd/informer-gen@v0.35.0
58+
go install k8s.io/code-generator/cmd/deepcopy-gen@v0.35.0
59+
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
60+
61+
4462
- name: Set image tag (VERSION) from release tag
4563
id: meta
4664
shell: bash

0 commit comments

Comments
 (0)