File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -34,17 +34,22 @@ jobs:
34
34
env :
35
35
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
36
37
+ - name : Set GORELEASER_CURRENT_TAG
38
+ if : ${{ startsWith(github.ref, 'refs/tags/controller-') }}
39
+ run : echo "GORELEASER_CURRENT_TAG=${{ github.ref }}" | sed 's/refs\/tags\/controller-//' >> $GITHUB_ENV
40
+
37
41
- name : Run GoReleaser
38
- if : ${{ startsWith(github.ref, 'refs/tags/') }}
42
+ if : ${{ startsWith(github.ref, 'refs/tags/controller- ') }}
39
43
uses : goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
40
44
with :
41
45
version : " ~> v2"
42
46
args : release --clean
43
47
env :
44
48
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49
+ GORELEASER_CURRENT_TAG : ${{ env.GORELEASER_CURRENT_TAG }}
45
50
46
51
- name : Update new version in krew-index
47
- if : ${{ startsWith(github.ref, 'refs/tags/') }}
52
+ if : ${{ startsWith(github.ref, 'refs/tags/controller- ') }}
48
53
uses : rajatjindal/krew-release-bot@3d9faef30a82761d610544f62afddca00993eef9 # v0.0.47
49
54
with :
50
55
krew_template_file : cmd/plugin/krew.yaml
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ builds:
22
22
ldflags : |
23
23
-s -w
24
24
-X k8s.io/ingress-nginx/version.COMMIT={{ .Commit }}
25
- -X k8s.io/ingress-nginx/version.RELEASE={{ .Tag }}
25
+ -X k8s.io/ingress-nginx/version.RELEASE=controller- {{ .Tag }}
26
26
archives :
27
27
- id : ingress-nginx
28
28
ids :
You can’t perform that action at this time.
0 commit comments