Commit Graph

7 Commits

Author SHA1 Message Date
Phil Pennock
dc39a9123a Adjust nightly name if on a branch
If we're on a branch other than main or dev, then when building "nightly",
build it with the name of the branch instead.  Overrideable via an env var.

It's a bit ugly because of limitations of goreleaser templating, we can't haul
the expression out to be defined once, but it works.

Can build a custom Docker image with:

    goreleaser release --snapshot -p 2 -f .goreleaser-nightly.yml --clean
2023-06-27 17:00:05 -04:00
Byron Ruth
f3dac91d2a Prepare v2.9.17 release
Include fix with GoReleaser for nightly.

Signed-off-by: Byron Ruth <byron@nats.io>
2023-05-18 13:57:40 -04:00
Ivan Kozlovic
5d6e96067d Fix nightly to have proper git commit and move to Go 1.17
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-01-26 14:58:11 -07:00
Ivan Kozlovic
59eef192cd Prepare for release v2.7.0, start with v2.7.0-rc1
Since we have never released with goreleaser and GO111MODULE=on
and have removed vendor directory, we are going to push a
v2.7.0-rc1 tag. If the goreleaser process works fine and submit
the draft release correctly, we will not do an actual v2.7.0-rc1
release. Instead, we will follow up immediately with the v2.7.0
tag and the proper release.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-01-13 16:15:51 -07:00
Yaxiong Zhao
b0cecaf666 Remove '-s' flag from ldflags from the build
This retains the symbols (but still removes the dwarf info).
This increases the executable size by ~8% (test on my laptop):

$ go build -ldflags '-w' -o nats-server
-rwxrwxr-x 1 yzhao yzhao 11911273 Jul 28 15:52 nats-server

$ go build -ldflags '-s -w' -o nats-server
-rwxrwxr-x 1 yzhao yzhao 11128832 Jul 28 15:52 nats-server

Symbols are very useful during debugging. It would be great that if the
NATS team consider including symbols.
2021-07-28 15:56:58 -07:00
R.I.Pienaar
693f9959a2 add version strings to the nightly builds of nats cli
Signed-off-by: R.I.Pienaar <rip@devco.net>
2021-02-24 20:12:47 +01:00
R.I.Pienaar
04271d7ead fix nightly schedule
Signed-off-by: R.I.Pienaar <rip@devco.net>
2020-06-05 12:21:36 +02:00