Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Update goreleaser config and stamp binaries with semantic version (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlegrone authored Aug 9, 2022
1 parent 338c014 commit c19371c
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@

# sqlite databases
*.db

dist/
26 changes: 26 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Read config documentation at https://goreleaser.com
before:
hooks:
- go mod tidy
- go test ./...
builds:
- main: ./cmd/temporalite
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
12 changes: 9 additions & 3 deletions cmd/temporalite/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,17 @@ func main() {
}
}

// These variables are set by GoReleaser using ldflags
var version string

func buildCLI() *cli.App {
if version == "" {
version = "(devel)"
}
app := cli.NewApp()
app.Name = "temporal"
app.Usage = "Temporal server"
app.Version = headers.ServerVersion
app.Name = "temporalite"
app.Usage = "An experimental distribution of Temporal that runs as a single process\n\nFind more information at: https://github.com/temporalio/temporalite"
app.Version = fmt.Sprintf("%s (server %s)", version, headers.ServerVersion)
app.Commands = []*cli.Command{
{
Name: "start",
Expand Down

0 comments on commit c19371c

Please sign in to comment.