Set Opengist version from git tags (#261)

* Set Opengist version from git tags

* Add volume for docker dev container
This commit is contained in:
Thomas Miceli
2024-04-27 02:53:48 +02:00
committed by GitHub
parent 785d89d6ab
commit 3551fd745a
4 changed files with 10 additions and 7 deletions

View File

@ -20,7 +20,7 @@ var CmdVersion = cli.Command{
Name: "version",
Usage: "Print the version of Opengist",
Action: func(c *cli.Context) error {
fmt.Println("Opengist v" + config.OpengistVersion)
fmt.Println("Opengist " + config.OpengistVersion)
return nil
},
}
@ -57,7 +57,7 @@ func App() error {
}
func Initialize(ctx *cli.Context) {
fmt.Println("Opengist v" + config.OpengistVersion)
fmt.Println("Opengist " + config.OpengistVersion)
if err := config.InitConfig(ctx.String("config"), os.Stdout); err != nil {
panic(err)

View File

@ -17,7 +17,7 @@ import (
"gopkg.in/yaml.v3"
)
var OpengistVersion = "1.7.1"
var OpengistVersion = ""
var C *config