@@ -131,91 +131,6 @@ jobs:
131131 - run : chmod +x bin/preflight
132132 - run : make support-bundle-e2e-go-test
133133
134- goreleaser-test :
135- runs-on : ubuntu-latest
136- if : startsWith(github.ref, 'refs/tags/v') != true
137- strategy :
138- matrix :
139- goarch : [amd64, arm64]
140- goos : [darwin, linux]
141- include :
142- - goarch : arm
143- goos : linux
144- - goarch : riscv64
145- goos : linux
146- steps :
147- - name : Checkout
148- uses : actions/checkout@v5
149- with :
150- fetch-depth : 0
151-
152- - uses : actions/setup-go@v6
153- with :
154- go-version-file : ' go.mod'
155-
156- - name : Run GoReleaser
157- uses : goreleaser/goreleaser-action@v6
158- with :
159- version : " v2.12.3"
160- args : build --clean --snapshot --config deploy/.goreleaser.yaml --single-target
161- env :
162- GOARCH : ${{ matrix.goarch }}
163- GOOS : ${{ matrix.goos }}
164-
165- goreleaser :
166- runs-on : ubuntu-latest
167- needs :
168- - validate-preflight-e2e
169- - validate-supportbundle-e2e
170- if : startsWith(github.ref, 'refs/tags/v')
171- steps :
172- - name : Checkout
173- uses : actions/checkout@v5
174- with :
175- fetch-depth : 0
176-
177- - uses : azure/docker-login@v2
178- with :
179- username : ${{ secrets.DOCKERHUB_USER }}
180- password : ${{ secrets.DOCKERHUB_PASSWORD }}
181-
182- - uses : actions/setup-go@v6
183- with :
184- go-version-file : ' go.mod'
185-
186- -
uses :
sigstore/[email protected] 187-
188- - name : Get Cosign Key
189- run : |
190- echo $COSIGN_KEY | base64 -d > ./cosign.key
191- env :
192- COSIGN_KEY : ${{secrets.COSIGN_KEY}}
193-
194- - name : Generate SBOM
195- run : |
196- make sbom
197- env :
198- COSIGN_PASSWORD : ${{ secrets.COSIGN_PASSWORD }}
199- COSIGN_KEY : ${{ secrets.COSIGN_KEY }}
200-
201- - name : Run GoReleaser
202- uses : goreleaser/goreleaser-action@v6
203- with :
204- version : " v2.12.3" # Binary version to install
205- args : release --clean --config deploy/.goreleaser.yaml
206- env :
207- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
208-
209- - name : Update new preflight version in krew-index
210- uses :
rajatjindal/[email protected] 211- with :
212- krew_template_file : deploy/krew/preflight.yaml
213- - name : Update new support-bundle version in krew-index
214- uses :
rajatjindal/[email protected] 215- with :
216- krew_template_file : deploy/krew/support-bundle.yaml
217-
218-
219134# summary jobs, these jobs will only run if all the other jobs have succeeded
220135 validate-pr-tests :
221136 runs-on : ubuntu-latest
0 commit comments