bundlewrap/hooks/deploy_commit_hash_to_node.py
Franzi 59fd245a3f
add dynamic node attribute for last apply
so we can check if something has changed in the repo since the last
apply
2023-09-01 06:16:09 +02:00

6 lines
215 B
Python

def node_apply_end(repo, node, duration, interactive, result, **kwargs):
if not node.os in node.OS_FAMILY_UNIX:
return
node.run(f'echo "{repo.revision}" > /var/lib/bundlewrap/last_apply_commit_id')