Skip to content

Commit 66741b2

Browse files
added license file, updated to generate checksum for binary only
1 parent 92d506f commit 66741b2

File tree

2 files changed

+40
-27
lines changed

2 files changed

+40
-27
lines changed

.goreleaser.yml

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,44 @@ before:
55
# this is just an example and not a requirement for provider building/publishing
66
- go mod tidy
77
builds:
8-
- env:
8+
env:
99
# goreleaser does not work with CGO, it could also complicate
1010
# usage by users in CI/CD systems like Terraform Cloud where
1111
# they are unable to install libraries.
1212
- CGO_ENABLED=0
13-
mod_timestamp: '{{ .CommitTimestamp }}'
14-
flags:
15-
- -trimpath
16-
ldflags:
17-
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
18-
goos:
19-
- freebsd
20-
- windows
21-
- linux
22-
- darwin
23-
goarch:
24-
- amd64
25-
- '386'
26-
- arm
27-
- arm64
28-
ignore:
29-
- goos: darwin
30-
goarch: '386'
31-
- goos: freebsd
32-
goarch: 'arm64'
33-
binary: 'keyfactor'
34-
main: './cmd/keyfactor'
13+
mod_timestamp: '{{ .CommitTimestamp }}'
14+
flags:
15+
- -trimpath
16+
ldflags:
17+
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
18+
goos:
19+
- freebsd
20+
- windows
21+
- linux
22+
- darwin
23+
goarch:
24+
- amd64
25+
- '386'
26+
- arm
27+
- arm64
28+
ignore:
29+
- goos: darwin
30+
goarch: '386'
31+
- goos: freebsd
32+
goarch: 'arm64'
33+
binary: 'keyfactor'
34+
id: "keyfactor"
35+
main: './cmd/keyfactor'
3536
archives:
36-
- format: zip
37-
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
37+
format: zip
38+
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
39+
files:
40+
- installation.txt
41+
- LICENSE.txt
3842
checksum:
43+
ids:
44+
- keyfactor
45+
3946
name_template: '{{ .ProjectName }}.{{ .Version }}.sha256'
4047
algorithm: sha256
4148
# split: true
@@ -53,8 +60,8 @@ signs:
5360
- "${artifact}"
5461
release:
5562
prerelease: auto
56-
extra_files:
57-
- glob: 'installation.txt'
63+
# extra_files:
64+
# - glob: 'installation.txt'
5865
# If you want to manually examine the release before its live, uncomment this line:
5966
draft: true
6067
changelog:

LICENSE.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Copyright 2024 Keyfactor
2+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
3+
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
4+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
5+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
6+
and limitations under the License.

0 commit comments

Comments
 (0)