bundlewrap/hooks/deploy_commit_hash_to_node.py

6 lines
215 B
Python
Raw Normal View History

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')