diff --git a/.dockerignore b/.dockerignore index dedb85173a..429a7e9d46 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,4 @@ .github -.git changelog docs examples diff --git a/changelog/unreleased/fix-version-string.md b/changelog/unreleased/fix-version-string.md new file mode 100644 index 0000000000..7b066337a6 --- /dev/null +++ b/changelog/unreleased/fix-version-string.md @@ -0,0 +1,4 @@ +Bugfix: re-include the '.git' dir in the Docker images to pass the version tag +and git SHA to the release tool. + +https://github.com/cs3org/reva/pull/1413 diff --git a/cmd/revad/main.go b/cmd/revad/main.go index be3addcbe6..219c0c4690 100644 --- a/cmd/revad/main.go +++ b/cmd/revad/main.go @@ -86,7 +86,7 @@ func main() { func handleVersionFlag() { if *versionFlag { fmt.Fprintf(os.Stderr, "%s\n", getVersionString()) - os.Exit(1) + os.Exit(0) } }