Commit dd9d5e4 1 parent 29c3d0a commit dd9d5e4 Copy full SHA for dd9d5e4
File tree 2 files changed +27
-50
lines changed
2 files changed +27
-50
lines changed Original file line number Diff line number Diff line change 5
5
tags :
6
6
- ' v*'
7
7
8
- env :
9
- BUILD_TAGS : ' akscluster cluster clustergroup credential ekscluster gitrepository iampolicy kustomization namespace custompolicy imagepolicy networkpolicy quotapolicy securitypolicy sourcesecret workspace tanzupackage tanzupackages packagerepository packageinstall clustersecret integration mutationpolicy backupschedule targetlocation dataprotection tanzukubernetescluster clusterclass managementcluster provisioner inspections custompolicytemplate customiamrole permissiontemplate '
8
+ permissions :
9
+ contents : write
10
10
11
11
jobs :
12
12
goreleaser :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- -
16
- name : Checkout
17
- uses : actions/checkout@v4
15
+ - name : Checkout Repository
16
+ uses : actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
18
17
with :
19
18
fetch-depth : 0
20
- -
21
- name : Set up Go
22
- uses : actions/setup-go@v5
19
+ - name : Setup Go
20
+ uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
23
21
with :
24
- go-version : 1.19
25
- -
26
- name : golangci-lint
27
- uses : golangci/golangci-lint-action@v6
28
- with :
29
- version : v1.48.0
30
- args : --issues-exit-code=1
31
- skip-pkg-cache : true
32
- skip-build-cache : true
33
-
34
- -
35
- name : unit-test
36
- run : |
37
- go test -v ./... -cover
38
-
39
- -
40
- name : mock-test
41
- run : |
42
- go test -v ./... -tags $BUILD_TAGS
43
-
44
- -
45
- name : Import GPG key
22
+ go-version-file : ' go.mod'
23
+ - name : Import GPG Key
46
24
id : import_gpg
47
- uses : crazy-max/ghaction-import-gpg@v2
48
- env :
49
- GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
50
- PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
51
- -
52
- name : Run GoReleaser
53
- uses : goreleaser/goreleaser-action@v2
25
+ uses : crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
26
+ with :
27
+ gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY2 }}
28
+ passphrase : ${{ secrets.GPG_PASSPHRASE2 }}
29
+ - name : Run GoReleaser
30
+ uses : goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
54
31
with :
55
32
version : latest
56
- args : release --rm-dist --release-header .goreleaser.tmpl
33
+ args : release --clean --timeout 60m --release-header-tmpl .goreleaser.tmpl
57
34
env :
58
35
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
59
36
GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
Original file line number Diff line number Diff line change 1
- # Visit https://goreleaser.com for documentation on how to customize this
2
- # behavior.
1
+ version : 2
2
+
3
3
before :
4
4
hooks :
5
5
# this is just an example and not a requirement for provider building/publishing
@@ -33,12 +33,15 @@ archives:
33
33
- format : zip
34
34
name_template : ' {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
35
35
checksum :
36
+ extra_files :
37
+ - glob : ' terraform-registry-manifest.json'
38
+ name_template : ' {{ .ProjectName }}_{{ .Version }}_manifest.json'
36
39
name_template : ' {{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
37
40
algorithm : sha256
38
41
signs :
39
42
- artifacts : checksum
40
43
args :
41
- # if you are using this is a GitHub action or some other automated pipeline, you
44
+ # if you are using this in a GitHub action or some other automated pipeline, you
42
45
# need to pass the batch flag to indicate its not interactive.
43
46
- " --batch"
44
47
- " --local-user"
@@ -48,13 +51,10 @@ signs:
48
51
- " --detach-sign"
49
52
- " ${artifact}"
50
53
release :
51
- # Visit your project's GitHub Releases page to publish this release.
52
- draft : true
54
+ extra_files :
55
+ - glob : ' terraform-registry-manifest.json'
56
+ name_template : ' {{ .ProjectName }}_{{ .Version }}_manifest.json'
57
+ # If you want to manually examine the release before its live, uncomment this line:
58
+ # draft: true
53
59
changelog :
54
- filters :
55
- exclude :
56
- - ' ^docs:'
57
- - ' ^test:'
58
- - Merge pull request
59
- - Merge branch
60
- - go mod tidy
60
+ disable : true
You can’t perform that action at this time.
0 commit comments