-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
74 lines (69 loc) · 1.79 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
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
version: 2
# before:
# hooks:
# # You may remove this if you don't use go modules.
# - go mod tidy
builds:
- env: ["CGO_ENABLED=0"]
goos: [linux, windows, darwin]
goarch: [amd64, arm64]
binary: myapp
# targets: [go_first_class]
notarize:
macos:
- enabled: '{{ isEnvSet "MACOS_SIGN_P12" }}'
sign:
certificate: "{{.Env.MACOS_SIGN_P12}}"
password: "{{.Env.MACOS_SIGN_PASSWORD}}"
notarize:
issuer_id: "{{.Env.MACOS_NOTARY_ISSUER_ID}}"
key_id: "{{.Env.MACOS_NOTARY_KEY_ID}}"
key: "{{.Env.MACOS_NOTARY_KEY}}"
archives:
- name_template: >-
{{ .ProjectName }}_{{ .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
# dockers:
# - image_templates: ["caarlos0/moises:{{.Version}}-amd64"]
# use: buildx
# dockerfile: Dockerfile
#
# docker_manifests:
# - use: docker
# name_template: caarlos0/moises:{{.Version}}
# image_templates:
# - caarlos0/moises:{{.Version}}-amd64
release:
# disable: true
prerelease: auto
draft: true
replace_existing_draft: true
make_latest: false
# draft: false
# replace_existing_draft: true
# name_template: '{{.Version}}'
# target_commitish: 'master'
github:
owner: caarlos0-graveyard
name: test2
# docker_signs:
# - artifacts: manifests
# stdin: "{{ .Env.COSIGN_PWD }}"
# nightly:
# publish_release: true
# keep_single_release: true
# name_template: 'v{{ incminor .Version }}-nightly'
#
#
# monorepo:
# tag_prefix: v
#
#
# kos:
# - repository: ghcr.io/caarlos0/test-ko:{{ .Version }}
# preserve_import_paths: false