-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yaml
1156 lines (990 loc) · 34.9 KB
/
.goreleaser.yaml
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
# The lines below are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/need to use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- id: default
binary: observe-agent
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
ldflags: -s -w -X github.com/observeinc/observe-agent/build.Version={{.Version}}
- id: windows_build
binary: observe-agent
env:
- CGO_ENABLED=0
goos:
- windows
goarch:
- amd64
- '386'
ldflags: -s -w -X github.com/observeinc/observe-agent/build.Version={{.Version}}
archives:
- id: default
format: tar.gz
builds:
- default
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
files:
- src: "packaging/linux/etc/observe-agent/*"
dst: "."
- src: "packaging/linux/config/*"
dst: "."
- id: windows
format: zip
builds:
- windows_build
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
files:
- src: "packaging/windows/config/otel-collector.yaml"
dst: "otel-collector.yaml"
- src: "packaging/windows/observe-agent.yaml"
dst: "observe-agent.yaml"
- src: "packaging/windows/connections/host_monitoring/*"
dst: "connections/host_monitoring"
- src: "packaging/windows/connections/self_monitoring/*"
dst: "connections/self_monitoring"
changelog:
use: github
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
groups:
- title: Features
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: "Bug Fixes"
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: "Configuration Updates"
regexp: '^.*?config(\([[:word:]]+\))??!?:.+$'
order: 2
- title: "Enhancements"
regexp: '^.*?internal(\([[:word:]]+\))??!?:.+$'
order: 3
- title: "Dependency Updates"
regexp: '^.*?build\(deps\)(\([[:word:]]+\))??!?:.+$'
order: 4
- title: Others
order: 999
nfpms:
- id: default
package_name: observe-agent
# You can change the file name of the package.
#
# Default: '{{ .PackageName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
# Templates: allowed
file_name_template: "{{ .ConventionalFileName }}"
vendor: Observe Inc.
# Your app's homepage.
homepage: https://observeinc.com/
maintainer: Alex Lew <alex.lew@observeinc.com>
description: |-
Observe agent.
license: Apache 2.0
formats:
- apk
- deb
- rpm
- termux.deb # Since: v1.11
- archlinux # Since: v1.13
# Umask to be used on files without explicit mode set. (overridable)
#
# Default: 0o002 (will remove world-writable permissions)
# Since: v1.19
umask: 0o002
# Packages your package depends on. (overridable)
# dependencies:
# - git
# - zsh
# Packages it provides. (overridable)
#
# Since: v1.11
# provides:
# - bar
# Packages your package recommends installing. (overridable)
# recommends:
# - bzr
# - gtk
# Packages your package suggests installing. (overridable)
# suggests:
# - cvs
# - ksh
# Packages that conflict with your package. (overridable)
# conflicts:
# - svn
# - bash
# Packages it replaces. (overridable)
# replaces:
# - fish
# Path that the binaries should be installed.
#
# Default: '/usr/bin'
# bindir: /usr/bin
# Paths to the directories where to put specific types of libraries that
# GoReleaser built.
#
# This should be used together with `builds.buildmode`
#
# Since: v1.24.
# Templates: allowed
# libdirs:
# # Default: '/usr/include'
# headers: /usr/include/something
# # Default: '/usr/lib'
# cshared: /usr/lib/foo
# # Default: '/usr/lib'
# carchive: /usr/lib/foobar
# Version Epoch.
# Default: extracted from `version` if it is semver compatible
# epoch: 2
# Version Prerelease.
# Default: extracted from `version` if it is semver compatible
# prerelease: beta1
# Version Metadata (previously deb.metadata).
# Setting metadata might interfere with version comparisons depending on the
# packager.
#
# Default: extracted from `version` if it is semver compatible
# version_metadata: git
# Version Release.
# release: 1
# Section.
section: default
# Priority.
priority: extra
# Makes a meta package - an empty package that contains only supporting
# files and dependencies.
# When set to `true`, the `builds` option is ignored.
# meta: true
# Changelog YAML file, see: https://github.com/goreleaser/chglog
#
# You can use goreleaser/chglog to create the changelog for your project,
# pass that changelog yaml file to GoReleaser,
# and it should in turn setup it accordingly for the given available
# formats (deb and rpm at the moment).
#
# Experimental.
# Since: v1.11
# changelog: ./foo.yml
# Contents to add to the package.
# GoReleaser will automatically add the binaries.
contents:
- src: packaging/linux/etc/
dst: /etc
type: tree
- src: packaging/linux/config/observe-agent.yaml
dst: /etc/observe-agent/observe-agent.yaml
type: config
- src: packaging/linux/config/observe-agent.service
dst: /lib/systemd/system/observe-agent.service
type: config
# - src: packaging/etc/observe-agent/config.yaml
# dst: /etc/observe-agent/config.yaml
# type: config
# # Basic file that applies to all packagers
# - src: path/to/foo
# dst: /usr/bin/foo
# # This will add all files in some/directory or in subdirectories at the
# # same level under the directory /etc. This means the tree structure in
# # some/directory will not be replicated.
# - src: some/directory/
# dst: /etc
# # This will replicate the directory structure under some/directory at
# # /etc, using the "tree" type.
# #
# # Since: v1.17
# # Templates: allowed
# - src: some/directory/
# dst: /etc
# type: tree
# # Simple config file
# - src: path/to/foo.conf
# dst: /etc/foo.conf
# type: config
# # Simple symlink.
# # Corresponds to `ln -s /sbin/foo /usr/local/bin/foo`
# - src: /sbin/foo
# dst: /usr/bin/foo
# type: "symlink"
# # Corresponds to `%config(noreplace)` if the packager is rpm, otherwise it
# # is just a config file
# - src: path/to/local/bar.conf
# dst: /etc/bar.conf
# type: "config|noreplace"
# # The src and dst attributes also supports name templates
# - src: path/{{ .Os }}-{{ .Arch }}/bar.conf
# dst: /etc/foo/bar-{{ .ProjectName }}.conf
# Additional templated contents to add to the archive.
# Those files will have their contents pass through the template engine,
# and its results will be added to the package.
#
# This feature is only available in GoReleaser Pro.
# Since: v1.17 (pro)
# Templates: allowed
# templated_contents:
# # a more complete example, check the globbing deep dive below
# - src: "LICENSE.md.tpl"
# dst: LICENSE.md
# # These files are not actually present in the package, but the file names
# # are added to the package header. From the RPM directives documentation:
# #
# # "There are times when a file should be owned by the package but not
# # installed - log files and state files are good examples of cases you
# # might desire this to happen."
# #
# # "The way to achieve this, is to use the %ghost directive. By adding this
# # directive to the line containing a file, RPM will know about the ghosted
# # file, but will not add it to the package."
# #
# # For non rpm packages ghost files are ignored at this time.
# - dst: /etc/casper.conf
# type: ghost
# - dst: /var/log/boo.log
# type: ghost
# # You can use the packager field to add files that are unique to a
# # specific packager
# - src: path/to/rpm/file.conf
# dst: /etc/file.conf
# type: "config|noreplace"
# packager: rpm
# - src: path/to/deb/file.conf
# dst: /etc/file.conf
# type: "config|noreplace"
# packager: deb
# - src: path/to/apk/file.conf
# dst: /etc/file.conf
# type: "config|noreplace"
# packager: apk
# # Sometimes it is important to be able to set the mtime, mode, owner, or
# # group for a file that differs from what is on the local build system at
# # build time.
# - src: path/to/foo
# dst: /usr/local/foo
# file_info:
# mode: 0644
# mtime: 2008-01-02T15:04:05Z
# owner: notRoot
# group: notRoot
# # If `dst` ends with a `/`, it'll create the given path and copy the given
# # `src` into it, the same way `cp` works with and without trailing `/`.
# - src: ./foo/bar/*
# dst: /usr/local/myapp/
# # Using the type 'dir', empty directories can be created. When building
# # RPMs, however, this type has another important purpose: Claiming
# # ownership of that folder. This is important because when upgrading or
# # removing an RPM package, only the directories for which it has claimed
# # ownership are removed. However, you should not claim ownership of a
# # folder that is created by the OS or a dependency of your package.
# #
# # A directory in the build environment can optionally be provided in the
# # 'src' field in order copy mtime and mode from that directory without
# # having to specify it manually.
# - dst: /some/dir
# type: dir
# file_info:
# mode: 0700
# Scripts to execute during the installation of the package. (overridable)
#
# Keys are the possible targets during the installation process
# Values are the paths to the scripts which will be executed.
#
# Templates: allowed (since v1.20)
scripts:
preinstall: "packaging/linux/scripts/preinstall.sh"
postinstall: "packaging/linux/scripts/postinstall.sh"
preremove: "packaging/linux/scripts/preremove.sh"
# Templated scripts to execute during the installation of the package. (overridable)
#
# Keys are the possible targets during the installation process
# Values are the paths to the scripts which will be executed.
#
# This feature is only available in GoReleaser Pro.
# Since: v1.20 (pro)
# Templates: allowed
# templated_scripts:
# preinstall: "scripts/preinstall.sh"
# postinstall: "scripts/postinstall.sh"
# preremove: "scripts/preremove.sh"
# postremove: "scripts/postremove.sh"
# All fields above marked as `overridable` can be overridden for a given
# package format in this section.
# overrides:
# # The dependencies override can for example be used to provide version
# # constraints for dependencies where different package formats use
# # different versions or for dependencies that are named differently.
# deb:
# dependencies:
# - baz (>= 1.2.3-0)
# - some-lib-dev
# # ...
# rpm:
# dependencies:
# - baz >= 1.2.3-0
# - some-lib-devel
# # ...
# apk:
# # ...
# Custom configuration applied only to the RPM packager.
# rpm:
# # RPM specific scripts.
# scripts:
# # The pretrans script runs before all RPM package transactions / stages.
# pretrans: ./scripts/pretrans.sh
# # The posttrans script runs after all RPM package transactions / stages.
# posttrans: ./scripts/posttrans.sh
# # The package summary.
# #
# # Default: first line of the description
# summary: Observe agent
# # The package group.
# # This option is deprecated by most distros but required by old distros
# # like CentOS 5 / EL 5 and earlier.
# group: Unspecified
# # The packager is used to identify the organization that actually packaged
# # the software, as opposed to the author of the software.
# # `maintainer` will be used as fallback if not specified.
# # This will expand any env var you set in the field, eg packager: ${PACKAGER}
# packager: GoReleaser <staff@goreleaser.com>
# # Compression algorithm (gzip (default), lzma or xz).
# compression: lzma
# # Prefixes for relocatable packages.
# #
# # Since: v1.20
# prefixes:
# - /usr/bin
# # The package is signed if a key_file is set
# signature:
# # PGP secret key file path (can also be ASCII-armored).
# #
# # See "Signing key passphrases" below for more information.
# #
# # Templates: allowed
# key_file: "{{ .Env.GPG_KEY_PATH }}"
# Custom configuration applied only to the Deb packager.
# deb:
# Lintian overrides
# lintian_overrides:
# - statically-linked-binary
# - changelog-file-missing-in-native-package
# # Custom deb special files.
# scripts:
# # Deb rules script.
# rules: foo.sh
# # Deb templates file, when using debconf.
# templates: templates
# # Custom deb triggers
# triggers:
# # register interest on a trigger activated by another package
# # (also available: interest_await, interest_noawait)
# interest:
# - some-trigger-name
# # activate a trigger for another package
# # (also available: activate_await, activate_noawait)
# activate:
# - another-trigger-name
# Packages which would break if this package would be installed.
# The installation of this package is blocked if `some-package`
# is already installed.
# breaks:
# - some-package
# Packages which would break if this package would be installed.
# The installation of this package is blocked if `some-package`
# is already installed.
#
# Since: v1.25.
# breaks:
# - some-package
# The package is signed if a key_file is set
# signature:
# # PGP secret key file path (can also be ASCII-armored).
# #
# # See "Signing key passphrases" below for more information.
# #
# # Templates: allowed
# key_file: "{{ .Env.GPG_KEY_PATH }}"
# # The type describes the signers role, possible values are "origin",
# # "maint" and "archive".
# #
# # Default: 'origin'
# type: origin
# Additional fields for the control file. Empty fields are ignored.
# This will expand any env vars you set in the field values, e.g. Vcs-Browser: ${CI_PROJECT_URL}
# fields:
# Bugs: https://github.com/goreleaser/nfpm/issues
# The Debian-specific "predepends" field can be used to ensure the complete installation of a list of
# packages (including unpacking, pre- and post installation scripts) prior to the installation of the
# built package.
# predepends:
# - baz (>= 1.2.3-0)
# apk:
# # APK specific scripts.
# scripts:
# # The preupgrade script runs before APK upgrade.
# preupgrade: ./scripts/preupgrade.sh
# # The postupgrade script runs after APK.
# postupgrade: ./scripts/postupgrade.sh
# # The package is signed if a key_file is set
# signature:
# # PGP secret key file path (can also be ASCII-armored).
# #
# # See "Signing key passphrases" below for more information.
# #
# # Templates: allowed
# key_file: "{{ .Env.GPG_KEY_PATH }}"
# # The name of the signing key. When verifying a package, the signature
# # is matched to the public key store in /etc/apk/keys/<key_name>.rsa.pub.
# #
# # Default: maintainer's email address
# # Templates: allowed (since v1.15)
# key_name: origin
# archlinux:
# # Archlinux-specific scripts
# scripts:
# # The preupgrade script runs before pacman upgrades the package.
# preupgrade: ./scripts/preupgrade.sh
# # The postupgrade script runs after pacman upgrades the package.
# postupgrade: ./scripts/postupgrade.sh
# # The pkgbase can be used to explicitly specify the name to be used to refer
# # to a group of packages. See: https://wiki.archlinux.org/title/PKGBUILD#pkgbase.
# # pkgbase: foo
# # The packager refers to the organization packaging the software, not to be confused
# # with the maintainer, which is the person who maintains the software.
# packager: GoReleaser <staff@goreleaser.com>
dockers:
- image_templates:
- &amd64_image_dockerhub "docker.io/observeinc/observe-agent:{{ .Version }}-amd64"
- &amd64_image_ecr "723346149663.dkr.ecr.us-west-2.amazonaws.com/observe-agent:{{ .Version }}-amd64"
dockerfile: packaging/docker/Dockerfile
use: buildx
goos: linux
goarch: amd64
build_flag_templates:
- "--platform=linux/amd64"
extra_files:
- packaging/docker
- image_templates:
- &arm64v8_image_dockerhub "docker.io/observeinc/observe-agent:{{ .Version }}-arm64v8"
- &arm64v8_image_ecr "723346149663.dkr.ecr.us-west-2.amazonaws.com/observe-agent:{{ .Version }}-arm64v8"
dockerfile: packaging/docker/Dockerfile
use: buildx
goos: linux
goarch: arm64
build_flag_templates:
- "--platform=linux/arm64/v8"
extra_files:
- packaging/docker
docker_manifests:
- name_template: "docker.io/observeinc/observe-agent:{{ .Version }}"
image_templates:
- *amd64_image_dockerhub
- *arm64v8_image_dockerhub
- name_template: "docker.io/observeinc/observe-agent:latest"
image_templates:
- *amd64_image_dockerhub
- *arm64v8_image_dockerhub
- name_template: 723346149663.dkr.ecr.us-west-2.amazonaws.com/observe-agent:{{ .Version }}
image_templates:
- *amd64_image_ecr
- *arm64v8_image_ecr
- name_template: 723346149663.dkr.ecr.us-west-2.amazonaws.com/observe-agent:latest
image_templates:
- *amd64_image_ecr
- *arm64v8_image_ecr
# winget:
# - # Name of the recipe
# #
# # Default: ProjectName
# # Templates: allowed
# name: observe-agent
# # Publisher name.
# #
# # Templates: allowed
# # Required
# publisher: ObserveInc
# # Your app's description.
# #
# # Templates: allowed
# # Required
# short_description: "Observe Agent CLI and collector"
# # License name.
# #
# # Templates: allowed
# # Required
# license: "apache-2.0"
# # Publisher URL.
# #
# # Templates: allowed
# publisher_url: https://observeinc.com
# # Publisher support URL.
# #
# # Templates: allowed
# publisher_support_url: "https://github.com/observeinc/observe-agent/issues/new"
# # Package identifier.
# #
# # Default: Publisher.ProjectName
# # Templates: allowed
# package_identifier: observeinc.observe-agent
# # IDs of the archives to use.
# # Empty means all IDs.
# # ids:
# # - foo
# # - bar
# # Which format to use.
# #
# # Valid options are:
# # - '': archives or binaries
# # - 'msi': msi installers (requires the MSI pipe configured, Pro only)
# # - 'archive': archives (only if format is zip),
# # - 'binary': binaries
# #
# # Default: ''
# # Since: v1.24 (pro)
# # use: msi
# # GOAMD64 to specify which amd64 version to use if there are multiple
# # versions from the build section.
# #
# # Default: v1
# goamd64: v1
# # Product code to be used.
# #
# # Usually needed when `use: msi`.
# #
# # Since: v1.24 (pro)
# # product_code: AAAA-BBB-CCC-DDD-EEEFFF
# # URL which is determined by the given Token (github, gitlab or gitea).
# #
# # Default depends on the client.
# # Templates: allowed
# # url_template: "https://github.mycompany.com/foo/bar/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
# # Git author used to commit to the repository.
# commit_author:
# name: goreleaserbot
# email: bot@goreleaser.com
# # The project name and current git tag are used in the format string.
# #
# # Templates: allowed
# commit_msg_template: "{{ .PackageIdentifier }}: {{ .Tag }}"
# # Path for the file inside the repository.
# #
# # Default: manifests/<lowercased first char of publisher>/<publisher>/<version>
# path: manifests/g/goreleaser/1.19
# # Your app's homepage.
# homepage: "https://example.com/"
# # Your app's long description.
# #
# # Templates: allowed
# description: "Observe Agent CLI and collector."
# # License URL.
# #
# # Templates: allowed
# license_url: "https://github.com/observeinc/observe-agent/blob/main/LICENSE"
# # Copyright.
# #
# # Templates: allowed
# copyright: "Observe Inc"
# # Copyright URL.
# #
# # Templates: allowed
# # TODO
# copyright_url: "https://github.com/observeinc/observe-agent/blob/main/LICENSE"
# # Setting this will prevent goreleaser to actually try to commit the updated
# # package - instead, it will be stored on the dist directory only,
# # leaving the responsibility of publishing it to the user.
# #
# # If set to auto, the release will not be uploaded to the repository
# # in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
# #
# # Templates: allowed
# skip_upload: true
# # Release notes.
# #
# # If you want to use the release notes generated by GoReleaser, use
# # `{{.Changelog}}` as the value.
# #
# # Templates: allowed
# release_notes: "{{.Changelog}}"
# # Release notes URL.
# #
# # Templates: allowed
# # release_notes_url: "https://foo.bar/changelog/{{.Version}}"
# release_notes_url: "https://github.com/observeinc/observe-agent/releases"
# # Tags.
# # tags:
# # - golang
# # - cli
# # Package dependencies.
# #
# # Since: v1.21
# # Templates: allowed
# # dependencies:
# # - package_identifier: Foo.Bar
# # minimum_version: 1.2.3
# # Repository to push the generated files to.
# repository:
# # Repository owner.
# #
# # Templates: allowed
# owner: caarlos0
# # Repository name.
# #
# # Templates: allowed
# name: my-repo
# # Optionally a branch can be provided.
# #
# # Default: default repository branch
# # Templates: allowed
# branch: main
# # Optionally a token can be provided, if it differs from the token
# # provided to GoReleaser
# # Templates: allowed
# token: "{{ .Env.GITHUB_PERSONAL_AUTH_TOKEN }}"
# # Sets up pull request creation instead of just pushing to the given branch.
# # Make sure the 'branch' property is different from base before enabling
# # it.
# #
# # Since: v1.17
# pull_request:
# # Whether to enable it or not.
# enabled: true
# # Whether to open the PR as a draft or not.
# #
# # Since: v1.19
# draft: true
# # If the pull request template has checkboxes, enabling this will
# # check all of them.
# #
# # This feature is only available in GoReleaser Pro.
# # Since: v1.20 (pro)
# check_boxes: true
# # Base can also be another repository, in which case the owner and name
# # above will be used as HEAD, allowing cross-repository pull requests.
# #
# # Since: v1.19
# base:
# owner: goreleaser
# name: my-repo
# branch: main
# # Clone, create the file, commit and push, to a regular Git repository.
# #
# # Notice that this will only have any effect if the given URL is not
# # empty.
# #
# # Since: v1.18
# git:
# # The Git URL to push.
# #
# # Templates: allowed
# url: 'ssh://git@myserver.com:repo.git'
# # The SSH private key that should be used to commit to the Git
# # repository.
# # This can either be a path or the key contents.
# #
# # IMPORTANT: the key must not be password-protected.
# #
# # WARNING: do not expose your private key in the configuration file!
# #
# # Templates: allowed
# private_key: '{{ .Env.PRIVATE_KEY_PATH }}'
# # The value to be passed to `GIT_SSH_COMMAND`.
# # This is mainly used to specify the SSH private key used to pull/push
# # to the Git URL.
# #
# # Default: 'ssh -i {{ .KeyPath }} -o StrictHostKeyChecking=accept-new -F /dev/null'
# # Templates: allowed
# ssh_command: 'ssh -i {{ .Env.KEY }} -o SomeOption=yes'
msi:
- # ID of the resulting installer.
#
# Default: the project name
# id: foo
# Filename of the installer (without the extension).
#
# Default: '{{.ProjectName}}_{{.MsiArch}}'
# Templates: allowed
name: "observe-agent_{{ .Version }}-{{.MsiArch}}"
# The WXS file used to create the installers.
# The file contents go through the templating engine, so you can do things
# like `{{.Version}}` inside of it.
#
# Templates: allowed
# Required.
wxs: ./packaging/windows/app.wsx
# IDs of the archives to use.
# Empty means all IDs.
# ids:
# - foo
# - bar
# GOAMD64 to specify which amd64 version to use if there are multiple
# versions from the build section.
#
# Default: v1
goamd64: v1
# More files that will be available in the context in which the installer
# will be built.
# extra_files:
# - logo.ico
# Whether to remove the archives from the artifact list.
# If left as false, your end release will have both the zip and the msi
# files.
replace: false
# Set the modified timestamp on the output installer, typically
# you would do this to ensure a build was reproducible.
# Pass an empty string to skip modifying the output.
#
# Templates: allowed.
mod_timestamp: "{{ .CommitTimestamp }}"
brews:
-
# Name of the recipe
#
# Default: ProjectName
# Templates: allowed
name: observe-agent
# Alternative names for the current recipe.
#
# Useful if you want to publish a versioned formula as well, so users can
# more easily downgrade.
#
# Since: v1.20 (pro)
# Templates: allowed
# alternative_names:
# - myproject@{{ .Version }}
# - myproject@{{ .Major }}
# IDs of the archives to use.
# Empty means all IDs.
# ids:
# - foo
# - bar
# Sets the app file within a DMG.
#
# Since: 1.24 (pro)
# app: MyApp.app
# GOARM to specify which 32-bit arm version to use if there are multiple
# versions from the build section. Brew formulas support only one 32-bit
# version.
#
# Default: 6
goarm: 6
# GOAMD64 to specify which amd64 version to use if there are multiple
# versions from the build section.
#
# Default: v1
goamd64: v1
# NOTE: make sure the url_template, the token and given repo (github or
# gitlab) owner and name are from the same kind.
# We will probably unify this in the next major version like it is
# done with scoop.
# URL which is determined by the given Token (github, gitlab or gitea).
#
# Default depends on the client.
# Templates: allowed
# url_template: "https://github.mycompany.com/foo/bar/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
# Headers to include in the `url` stanza.
# This can be a more modern alternative to `download_strategy` in some
# cases.
#
# Since: v1.25
# url_headers:
# - "Accept: application/octet-stream"
# - 'Authorization: bearer #{ENV["HOMEBREW_GITHUB_API_TOKEN"]}'
# Allows you to set a custom download strategy. Note that you'll need
# to implement the strategy and add it to your tap repository.
# Example: https://docs.brew.sh/Formula-Cookbook#specifying-the-download-strategy-explicitly
# download_strategy: CurlDownloadStrategy
# download_strategy: GitHubPrivateRepositoryReleaseDownloadStrategy
# Allows you to add a custom require_relative at the top of the formula
# template.
# custom_require: custom_download_strategy
# Git author used to commit to the repository.
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
# The project name and current git tag are used in the format string.
#
# Templates: allowed
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
# Directory inside the repository to put the formula.
# directory: Formula
# Caveats for the user of your binary.
# caveats: "How to use this binary"
# Your app's homepage.
homepage: "https://observeinc.com/"
# Your app's description.
#
# Templates: allowed
description: "Observe-Agent is a tool for collecting and exporting metrics from your infrastructure."
# SPDX identifier of your app's license.
license: "Apache-2.0"
# Setting this will prevent goreleaser to actually try to commit the updated
# formula - instead, the formula file will be stored on the dist directory
# only, leaving the responsibility of publishing it to the user.
# If set to auto, the release will not be uploaded to the homebrew tap
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
#
# Templates: allowed
skip_upload: true
# Custom block for brew.
# Can be used to specify alternate downloads for devel or head releases.
# custom_block: |