Git-hash task
This commit is contained in:
parent
5113ef52fd
commit
9a1ae65708
1 changed files with 8 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue