about summary refs log tree commit diff stats
path: root/nix/scripts.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/scripts.nix')
-rw-r--r--nix/scripts.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/nix/scripts.nix b/nix/scripts.nix
index 94e4d85..e48de76 100644
--- a/nix/scripts.nix
+++ b/nix/scripts.nix
@@ -43,7 +43,9 @@ with pkgs; [
   '')
   (writeShellScriptBin "deploy" ''
     set -eu
-    push-to-registry docker://${image}
-    ${pkgs.flyctl}/bin/flyctl deploy
+    TAG=$(git rev-parse HEAD)
+    IMAGE=${image}:$TAG
+    push-to-registry docker://$IMAGE
+    ${pkgs.flyctl}/bin/flyctl deploy --image $IMAGE
   '')
 ]