Git-hash task

This commit is contained in:
Florian Zirker 2025-07-23 09:31:57 +02:00
parent 5113ef52fd
commit 9a1ae65708

View file

@ -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: