-
Notifications
You must be signed in to change notification settings - Fork 192
Expand file tree
/
Copy path.goreleaser.yml
More file actions
140 lines (140 loc) · 4.86 KB
/
.goreleaser.yml
File metadata and controls
140 lines (140 loc) · 4.86 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: 2
before:
hooks:
- go generate ./...
dist: releases
snapshot:
version_template: "{{ .Summary }}"
builds:
- id: default
env:
- CGO_ENABLED=0
binary: nanobot
goarch:
- amd64
- arm64
tags:
- netgo
flags:
- -trimpath
ldflags:
- -s
- -w
- -X "github.com/obot-platform/nanobot/pkg/version.Tag=v{{ .Version }}"
- -X "github.com/obot-platform/nanobot/pkg/version.BaseImage=ghcr.io/obot-platform/nanobot:v{{ .Version }}"
universal_binaries:
- id: mac
ids:
- default
replace: true
archives:
- formats: ["tar.gz"]
ids:
- default
- mac
name_template: >-
{{ .ProjectName }}_ {{- .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
formats: ["zip"]
checksum:
name_template: "{{ .ProjectName }}_v{{ .Version }}_checksums.txt"
changelog:
use: github
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^ci:"
- Merge pull request
- Merge branch
release:
github:
owner: obot-platform
name: nanobot
prerelease: auto
dockers:
- image_templates:
- "ghcr.io/obot-platform/nanobot:v{{ .Version }}-amd64"
- "ghcr.io/obot-platform/nanobot:latest-amd64"
dockerfile: Dockerfile
use: buildx
extra_files:
- scripts/prefetch-tiktoken-encodings.sh
build_flag_templates:
- "--target=release"
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--label=org.opencontainers.image.description=Nanobot CLI"
goarch: amd64
- image_templates:
- "ghcr.io/obot-platform/nanobot:v{{ .Version }}-arm64"
- "ghcr.io/obot-platform/nanobot:latest-arm64"
dockerfile: Dockerfile
use: buildx
extra_files:
- scripts/prefetch-tiktoken-encodings.sh
build_flag_templates:
- "--target=release"
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--label=org.opencontainers.image.description=Nanobot CLI"
goarch: arm64
- image_templates:
- "ghcr.io/obot-platform/nanobot-agent:v{{ .Version }}-amd64"
- "ghcr.io/obot-platform/nanobot-agent:latest-amd64"
dockerfile: Dockerfile.agent
use: buildx
build_flag_templates:
- "--target=release"
- "--platform=linux/amd64"
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title=nanobot-agent"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--label=org.opencontainers.image.description=Nanobot agent image with browser automation support"
goarch: amd64
- image_templates:
- "ghcr.io/obot-platform/nanobot-agent:v{{ .Version }}-arm64"
- "ghcr.io/obot-platform/nanobot-agent:latest-arm64"
dockerfile: Dockerfile.agent
use: buildx
build_flag_templates:
- "--target=release"
- "--platform=linux/arm64"
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title=nanobot-agent"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--label=org.opencontainers.image.description=Nanobot agent image with browser automation support"
goarch: arm64
docker_manifests:
- name_template: "ghcr.io/obot-platform/nanobot:v{{ .Version }}"
image_templates:
- "ghcr.io/obot-platform/nanobot:v{{ .Version }}-amd64"
- "ghcr.io/obot-platform/nanobot:v{{ .Version }}-arm64"
- name_template: "ghcr.io/obot-platform/nanobot:latest"
image_templates:
- "ghcr.io/obot-platform/nanobot:latest-amd64"
- "ghcr.io/obot-platform/nanobot:latest-arm64"
- name_template: "ghcr.io/obot-platform/nanobot-agent:v{{ .Version }}"
image_templates:
- "ghcr.io/obot-platform/nanobot-agent:v{{ .Version }}-amd64"
- "ghcr.io/obot-platform/nanobot-agent:v{{ .Version }}-arm64"
- name_template: "ghcr.io/obot-platform/nanobot-agent:latest"
image_templates:
- "ghcr.io/obot-platform/nanobot-agent:latest-amd64"
- "ghcr.io/obot-platform/nanobot-agent:latest-arm64"