From 3da735c4e72f8de390e5f4f0df63476cac43b6b1 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 20 Apr 2024 00:20:34 +0200 Subject: use long git hashes for docker tags --- nix/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nix/default.nix') diff --git a/nix/default.nix b/nix/default.nix index 2a7792a..d586e2b 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -2,13 +2,14 @@ let revision = "${self.lastModifiedDate}-${self.shortRev or self.dirtyShortRev or "dirty"}"; version = self.shortRev or self.dirtyShortRev or "unstable-${self.lastModified}"; + dockerTag = self.rev or self.dirtyRev or "unstable-${self.lastModified}"; mkDocker = server: let PORT = 3000; in pkgs.dockerTools.streamLayeredImage { name = "registry.fly.io/alanpearce-eu"; - tag = revision; + tag = dockerTag; contents = [ server ]; config = { Cmd = [ "website" ]; -- cgit 1.4.1