File tree Expand file tree Collapse file tree 3 files changed +11
-51
lines changed Expand file tree Collapse file tree 3 files changed +11
-51
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,12 @@ jobs:
34
34
env :
35
35
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
36
37
- - name : Set GORELEASER_CURRENT_TAG
37
+ - name : Set a SemVer tag for goreleaser
38
38
if : ${{ startsWith(github.ref, 'refs/tags/controller-') }}
39
39
run : echo "GORELEASER_CURRENT_TAG=${{ github.ref }}" | sed 's/refs\/tags\/controller-//' >> $GITHUB_ENV
40
40
41
- - name : Create local SemVer tag
41
+ # GoReleaser requires a SemVer tag to be present in the git repository
42
+ - name : Create a local SemVer tag
42
43
run : git tag "${{ env.GORELEASER_CURRENT_TAG }}"
43
44
44
45
- name : Run GoReleaser
52
53
GORELEASER_CURRENT_TAG : ${{ env.GORELEASER_CURRENT_TAG }}
53
54
54
55
- name : Upload artifacts to release
56
+ if : ${{ startsWith(github.ref, 'refs/tags/controller-') }}
55
57
uses : softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
56
58
with :
57
59
files : |
Original file line number Diff line number Diff line change 1
1
version : 2
2
2
3
3
project_name : ingress-nginx
4
+
4
5
release :
6
+ # Disable uploading release assets to GitHub as it requires SemVer tags
5
7
disable : true
8
+
6
9
builds :
7
10
- id : ingress-nginx
8
11
goos :
@@ -20,14 +23,16 @@ builds:
20
23
ldflags : |
21
24
-s -w
22
25
-X k8s.io/ingress-nginx/version.COMMIT={{ .Commit }}
23
- -X k8s.io/ingress-nginx/version.RELEASE=controller-{{ .Tag }}
26
+ -X k8s.io/ingress-nginx/version.RELEASE={{ .Tag }}
27
+
24
28
archives :
25
29
- id : ingress-nginx
26
30
ids :
27
31
- ingress-nginx
28
32
name_template : " kubectl-{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
29
33
formats :
30
34
- tar.gz
35
+
31
36
checksum :
32
37
name_template : " kubectl-{{ .ProjectName }}_checksums.txt"
33
38
36
41
homepage : " https://kubernetes.github.io/ingress-nginx/kubectl-plugin/"
37
42
description : " The official kubectl plugin for ingress-nginx."
38
43
short_description : " Interact with ingress-nginx"
39
- url_template : " http://github.com/alexintech /ingress-nginx/releases/download/controller-{{ .Tag }}/{{ .ArtifactName }}"
44
+ url_template : " http://github.com/kubernetes /ingress-nginx/releases/download/controller-{{ .Tag }}/{{ .ArtifactName }}"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments