Fix version reporting and setting
This commit is contained in:
parent
a0657b32e7
commit
20f50b678c
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ WORKDIR /app
|
|||
COPY . .
|
||||
RUN go mod download
|
||||
|
||||
RUN go build -o rove-server -ldflags="-X version.Version=$(git describe --always --long --dirty)" .
|
||||
RUN go build -o rove-server -ldflags="-X 'github.com/mdiluz/rove/pkg/version.Version=$(git describe --always --long --dirty)'" .
|
||||
|
||||
CMD [ "./rove-server" ]
|
||||
|
||||
|
|
2
main.go
2
main.go
|
@ -31,7 +31,7 @@ func main() {
|
|||
server.OptionPort(*port),
|
||||
server.OptionPersistentData())
|
||||
|
||||
fmt.Println("Initialising...")
|
||||
fmt.Printf("Initialising version %s...\n", version.Version)
|
||||
if err := s.Initialise(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue