-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
Copy path.goreleaser-nightly.yml
40 lines (35 loc) · 1.12 KB
/
.goreleaser-nightly.yml
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
project_name: nats-server
version: 2
builds:
- main: .
id: nats-server
binary: nats-server
ldflags:
- -w -X github.com/nats-io/nats-server/v2/server.gitCommit={{.ShortCommit}}
env:
- GO111MODULE=on
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
mod_timestamp: "{{ .CommitTimestamp }}"
release:
disable: true
dockers:
- goos: linux
goarch: amd64
dockerfile: docker/Dockerfile.nightly
skip_push: false
build_flag_templates:
- '--build-arg=VERSION={{ if ne .Branch "main" }}{{ replace .Branch "/" "-" }}{{ else }}nightly{{ end }}-{{ time "20060102" }}'
image_templates:
- synadia/nats-server:{{ if ne .Branch "main" }}{{ replace .Branch "/" "-" }}{{ else }}nightly{{ end }}
- synadia/nats-server:{{ if ne .Branch "main" }}{{ replace .Branch "/" "-" }}{{ else }}nightly{{ end }}-{{ time "20060102" }}
extra_files:
- docker/nats-server.conf
checksum:
name_template: "SHA256SUMS"
algorithm: sha256
snapshot:
version_template: '{{ if ne .Branch "main" }}{{ replace .Branch "/" "-" }}{{ else }}nightly{{ end }}-{{ time "20060102" }}'