forked from nanobus/nanobus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
117 lines (113 loc) · 3.94 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
project_name: nanobus
builds:
- id: nanobus
main: ./cmd/nanobus
binary: nanobus
goos:
- linux
- darwin
- windows
- freebsd
goarch:
- amd64
- arm64
goarm:
- 6
- 7
ldflags:
- -s -w -X main.Version={{.Version}} -X main.Commit={{.Commit}} -X main.Date={{.Date}}
env:
- CGO_ENABLED=0
flags:
- -mod=readonly
archives:
- id: nanobus
builds:
- nanobus
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
format: tar.gz
format_overrides:
- goos: windows
format: zip
wrap_in_directory: true
files:
- README.md
- LICENSE
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
dockers:
- image_templates:
- 'nanobus/nanobus:{{ .Tag }}-amd64'
# - 'ghcr.io/nanobus/nanobus:{{ .Tag }}-amd64'
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/nanobus/nanobus/main/README.md"
- "--label=io.artifacthub.package.logo-url=https://raw.githubusercontent.com/nanobus/nanobus/main/logo.png"
- "--label=io.artifacthub.package.license=ELv2"
- "--label=org.opencontainers.image.description=A lightweight microservice runtime that reduces developer responsibility so that teams can focus on core application logic"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/amd64"
- image_templates:
- 'nanobus/nanobus:{{ .Tag }}-arm64v8'
# - 'ghcr.io/nanobus/nanobus:{{ .Tag }}-arm64'
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/nanobus/nanobus/main/README.md"
- "--label=io.artifacthub.package.logo-url=https://raw.githubusercontent.com/nanobus/nanobus/main/logo.png"
- "--label=io.artifacthub.package.license=ELv2"
- "--label=org.opencontainers.image.description=A lightweight microservice runtime that reduces developer responsibility so that teams can focus on core application logic"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/arm64/v8"
goarch: arm64
docker_manifests:
- name_template: 'nanobus/nanobus:{{ .Tag }}'
image_templates:
- 'nanobus/nanobus:{{ .Tag }}-amd64'
- 'nanobus/nanobus:{{ .Tag }}-arm64v8'
# - name_template: 'ghcr.io/nanobus/nanobus:{{ .Tag }}'
# image_templates:
# - 'ghcr.io/nanobus/nanobus:{{ .Tag }}-amd64'
# - 'ghcr.io/nanobus/nanobus:{{ .Tag }}-arm64v8'
- name_template: 'nanobus/nanobus:latest'
image_templates:
- 'nanobus/nanobus:{{ .Tag }}-amd64'
- 'nanobus/nanobus:{{ .Tag }}-arm64v8'
# - name_template: 'ghcr.io/nanobus/nanobus:latest'
# image_templates:
# - 'ghcr.io/nanobus/nanobus:{{ .Tag }}-amd64'
# - 'ghcr.io/nanobus/nanobus:{{ .Tag }}-arm64v8'
# brews:
# - name: NanoBus
# tap:
# owner: nanobus
# name: homebrew-tap
# folder: Formula
# homepage: https://nanobus.io
# description: NanoBus is a lightweight microservice runtime that reduces developer responsibility so that teams can focus on core application logic.
# license: "ELv2"
release:
github:
owner: nanobus
name: nanobus
prerelease: auto
draft: false