diff options
-rw-r--r-- | internal/server/server.go | 5 | ||||
-rw-r--r-- | nix/default.nix | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/internal/server/server.go b/internal/server/server.go index 2e9796d..cbee989 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -25,6 +25,11 @@ import ( var config *cfg.Config +var ( + CommitSHA string + ShortSHA string +) + type Config struct { Production bool `conf:"default:false"` InDevServer bool `conf:"default:false"` diff --git a/nix/default.nix b/nix/default.nix index e818c5a..de427db 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -80,9 +80,9 @@ with pkgs; rec { "-s" "-w" "-X" - "main.CommitSHA=${fullSHA}" + "website/internal/server.CommitSHA=${fullSHA}" "-X" - "main.ShortSHA=${shortSHA}" + "website/internal/server.ShortSHA=${shortSHA}" ]; }; docker-stream = mkDockerStream { inherit server website; }; |