Skip to content

Commit

Permalink
Fix git-sha display
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-yakushev committed Nov 12, 2024
1 parent 25943d2 commit 2a61266
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/flamebin/config.clj
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@

:build {:nested
{:version {:type :string
:default "unknown"
:delayed-transform
#(if (and (= % "unknown") (.exists (io/file "VERSION")))
(slurp "VERSION") %)}
:default #(if (.exists (io/file "VERSION"))
(slurp "VERSION")
"unknown")}
:git-sha {:type :string
:default "master"
:delayed-transform
#(if (and (= % "master") (.exists (io/file "GIT_SHA")))
(slurp "GIT_SHA") %)}}}
:default #(or (and (.exists (io/file "GIT_SHA"))
(some-> (slurp "GIT_SHA") not-empty
(subs 0 6)))
"master")}}}
:storage {:nested
{:kind {:type :keyword
:default :disk}
Expand Down

0 comments on commit 2a61266

Please sign in to comment.