get.pme.sh/pnats@v0.0.0-20240304004023-26bb5a137ed0/.goreleaser-nightly.yml (about) 1 project_name: nats-server 2 3 builds: 4 - main: . 5 id: nats-server 6 binary: nats-server 7 ldflags: 8 - -w -X github.com/nats-io/nats-server/v2/server.gitCommit={{.ShortCommit}} 9 env: 10 - GO111MODULE=on 11 - CGO_ENABLED=0 12 goos: 13 - linux 14 goarch: 15 - amd64 16 17 dockers: 18 - goos: linux 19 goarch: amd64 20 skip_push: true 21 dockerfile: docker/Dockerfile.nightly 22 build_flag_templates: 23 - '--build-arg=VERSION={{ if index .Env "IMAGE_NAME" }}{{ .Env.IMAGE_NAME }}{{ else if not (eq .Branch "main" "dev" "") }}{{ replace .Branch "/" "-" }}{{ else }}nightly{{ end }}-{{ time "20060102" }}' 24 image_templates: 25 - synadia/nats-server:{{.Version}} 26 - synadia/nats-server:{{ if index .Env "IMAGE_NAME" }}{{ .Env.IMAGE_NAME }}{{ else if not (eq .Branch "main" "dev" "") }}{{ replace .Branch "/" "-" }}{{ else }}nightly{{ end }} 27 extra_files: 28 - docker/nats-server.conf 29 30 checksum: 31 name_template: "SHA256SUMS" 32 algorithm: sha256 33 34 snapshot: 35 name_template: '{{ if index .Env "IMAGE_NAME" }}{{ .Env.IMAGE_NAME }}{{ else if not (eq .Branch "main" "dev" "") }}{{ replace .Branch "/" "-" }}{{ else }}nightly{{ end }}-{{ time "20060102" }}'