From 9a1ae657081ada65518ee00cd848e498505c5f10 Mon Sep 17 00:00:00 2001 From: Florian Zirker Date: Wed, 23 Jul 2025 09:31:57 +0200 Subject: [PATCH] Git-hash task --- Taskfile.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Taskfile.yaml b/Taskfile.yaml index 32a585a..02ea30c 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -12,6 +12,9 @@ includes: rustdesk: ./rustdesk/Tasks.yaml wallabag: ./wallabag/Tasks.yaml +vars: + GIT_COMMIT_HASH: + sh: git log -n 1 --format=%h tasks: default: @@ -20,6 +23,11 @@ tasks: - task --list-all silent: true + git:hash: + desc: Prints current git commit hash + cmds: + - echo {{.GIT_COMMIT_HASH}} + all:pull: desc: Pull and build all images cmds: