forked from observIQ/bindplane-otel-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser-windows.yml
More file actions
121 lines (111 loc) · 3.24 KB
/
.goreleaser-windows.yml
File metadata and controls
121 lines (111 loc) · 3.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
version: 2
project_name: observiq-otel-collector
before:
hooks:
- make release-prep CURR_VERSION={{ .Version }}
# https://goreleaser.com/customization/build/
builds:
- id: collector
binary: observiq-otel-collector
main: ./cmd/collector
env:
- CGO_ENABLED=1
mod_timestamp: "{{ .CommitTimestamp }}"
tags:
- bindplane
goos:
- windows
goarch:
- amd64
ldflags:
- -s -w
- -X github.com/observiq/bindplane-otel-collector/internal/version.version=v{{ .Version }}
- -X github.com/observiq/bindplane-otel-collector/internal/version.gitHash={{ .FullCommit }}
- -X github.com/observiq/bindplane-otel-collector/internal/version.date={{ .Date }}
no_unique_dist_dir: false
- id: updater
binary: updater
dir: ./updater/
main: ./cmd/updater
env:
- CGO_ENABLED=1
mod_timestamp: "{{ .CommitTimestamp }}"
goos:
- windows
goarch:
- amd64
ldflags:
- -s -w
- -X github.com/observiq/bindplane-otel-collector/updater/internal/version.version=v{{ .Version }}
- -X github.com/observiq/bindplane-otel-collector/updater/internal/version.gitHash={{ .FullCommit }}
- -X github.com/observiq/bindplane-otel-collector/updater/internal/version.date={{ .Date }}
no_unique_dist_dir: false
# https://goreleaser.com/customization/archive/
archives:
- format: zip
name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}"
files:
- LICENSE
- src: release_deps/config.yaml
dst: "."
strip_parent: true
- src: release_deps/logging.yaml
dst: "."
strip_parent: true
- src: release_deps/plugins/*
dst: plugins
strip_parent: true
- src: release_deps/VERSION.txt
dst: "."
strip_parent: true
- src: release_deps/windows_service.json
dst: install
strip_parent: true
# https://goreleaser.com/customization/checksum/
checksum:
name_template: "{{ .ProjectName }}-v{{ .Version }}-SHA256SUMS"
algorithm: sha256
extra_files:
- glob: "./observiq-otel-collector.msi"
- glob: "./dist/**/*.zip"
# https://goreleaser.com/customization/sign/
signs:
- cmd: cosign
stdin: "{{ .Env.COSIGN_PWD }}"
args:
["sign-blob", "--key=cosign.key", "--output=${signature}", "${artifact}"]
artifacts: all
# https://goreleaser.com/customization/release/
release:
draft: false
# publish to a prerelease first
prerelease: "true"
extra_files:
- glob: "./observiq-otel-collector*.msi"
- glob: "./observiq-otel-collector*.msi.sig"
- glob: "./dist/**/*.zip"
# https://console.cloud.google.com/storage/browser/bdot-release
blobs:
- provider: gs
bucket: bdot-release
directory: "v{{ .Version }}"
extra_files:
- glob: "./observiq-otel-collector*.msi"
- glob: "./observiq-otel-collector*.msi.sig"
- glob: "./dist/**/*.zip"
# https://goreleaser.com/customization/changelog/
changelog:
use: github
sort: asc
groups:
- title: "New Features"
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: "Bug Fixes"
regexp: "^.*fix[(\\w)]*:+.*$"
order: 10
- title: "Dependencies"
regexp: "^.*deps[(\\w)]*:+.*$"
order: 30
- title: Other
order: 999