all repos — website @ d0a18ee7b2db85c9482b1b096ad3b12a112db6be

My website

Brand server executable with full commit hash
Alan Pearce alan@alanpearce.eu
Tue, 23 Apr 2024 22:19:21 +0200
commit

d0a18ee7b2db85c9482b1b096ad3b12a112db6be

parent

5465b7b8462c1af9c6e2ebce9f82b75c918b66cc

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M nix/default.nixnix/default.nix
@@ -1,14 +1,14 @@ { pkgs, self }:
 let
   version = self.shortRev or self.dirtyShortRev or "unstable-${self.lastModified}";
-  dockerTag = self.rev or self.dirtyRev or "unstable-${self.lastModified}";
+  fullSHA = self.rev or self.dirtyRev;
   mkDocker = type: { server, website }:
     let
       PORT = 80;
     in
     pkgs.dockerTools.${type} {
       name = "registry.fly.io/alanpearce-eu";
-      tag = dockerTag;
+      tag = fullSHA;
       contents = [
         (pkgs.writeTextDir "config.toml" (builtins.readFile ./../config.toml))
         website
@@ -74,7 +74,7 @@ ./../internal       ];
     };
     modules = ./gomod2nix.toml;
-    ldflags = [ "-s" "-w" "-X" "main.Commit=${version}" ];
+    ldflags = [ "-s" "-w" "-X" "main.Commit=${fullSHA}" ];
   };
   docker-stream = mkDockerStream { inherit server website; };
   docker-stream-aarch64-linux = mkDockerStream {