File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments