def create_deployment_manifest(method):
"""Returns a dict describing the current deployable."""
service_info = get_service_info()
commit = get_commit()
version = get_git_version()
info = {
'deployable': service_info['name'],
'method': method,
'username': getpass.getuser(),
'datetime': datetime.utcnow().isoformat(),
'branch': get_branch(),
'commit': commit,
'commit_url': get_repo_url() + "/commit/" + commit,
'release': version['tag'] if version else 'untagged-branch'
}
return info
评论列表
文章目录