-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
99 lines (90 loc) · 2.99 KB
/
Copy path.goreleaser.yaml
File metadata and controls
99 lines (90 loc) · 2.99 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
version: 2
project_name: gogo
before:
hooks:
- go mod download
builds:
- id: gogo
main: ./cmd/gogo
binary: gogo
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w
- -X github.com/daFish/gogo-meta/internal/version.Version={{.Version}}
- -X github.com/daFish/gogo-meta/internal/version.BuildDate={{.Date}}
- -X github.com/daFish/gogo-meta/internal/version.GitCommit={{.FullCommit}}
goos:
- linux
- darwin
goarch:
- amd64
- arm64
archives:
- formats: [tar.gz]
name_template: >-
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
checksum:
name_template: 'checksums.txt'
homebrew_casks:
- name: gogo
binaries:
- gogo
directory: Casks
homepage: 'https://github.com/daFish/gogo-meta'
description: 'Run commands across multiple Git repositories at once'
custom_block: |
depends_on macos: :monterey
hooks:
post:
install: |
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/gogo"] if OS.mac?
commit_author:
name: 'github-actions[bot]'
email: '41898282+github-actions[bot]@users.noreply.github.com'
commit_msg_template: 'chore: brew cask update for {{ .ProjectName }} {{ .Tag }}'
repository:
owner: daFish
name: homebrew-gogo-meta
branch: main
token: '{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}'
dockers:
- image_templates:
- 'ghcr.io/dafish/gogo-meta:{{ .Version }}-amd64'
- 'ghcr.io/dafish/gogo-meta:{{ .Major }}.{{ .Minor }}-amd64'
use: buildx
goarch: amd64
dockerfile: Dockerfile
build_flag_templates:
- --platform=linux/amd64
- --label=org.opencontainers.image.source=https://github.com/daFish/gogo-meta
- --label=org.opencontainers.image.version={{.Version}}
- --label=org.opencontainers.image.revision={{.FullCommit}}
- image_templates:
- 'ghcr.io/dafish/gogo-meta:{{ .Version }}-arm64'
- 'ghcr.io/dafish/gogo-meta:{{ .Major }}.{{ .Minor }}-arm64'
use: buildx
goarch: arm64
dockerfile: Dockerfile
build_flag_templates:
- --platform=linux/arm64
- --label=org.opencontainers.image.source=https://github.com/daFish/gogo-meta
- --label=org.opencontainers.image.version={{.Version}}
- --label=org.opencontainers.image.revision={{.FullCommit}}
docker_manifests:
- name_template: 'ghcr.io/dafish/gogo-meta:{{ .Version }}'
image_templates:
- 'ghcr.io/dafish/gogo-meta:{{ .Version }}-amd64'
- 'ghcr.io/dafish/gogo-meta:{{ .Version }}-arm64'
- name_template: 'ghcr.io/dafish/gogo-meta:{{ .Major }}.{{ .Minor }}'
image_templates:
- 'ghcr.io/dafish/gogo-meta:{{ .Major }}.{{ .Minor }}-amd64'
- 'ghcr.io/dafish/gogo-meta:{{ .Major }}.{{ .Minor }}-arm64'
- name_template: 'ghcr.io/dafish/gogo-meta:latest'
image_templates:
- 'ghcr.io/dafish/gogo-meta:{{ .Version }}-amd64'
- 'ghcr.io/dafish/gogo-meta:{{ .Version }}-arm64'
release:
mode: append