def _push_packages_to_repo(repo_name="dev"):
"""Push local deploy directory of packages to actual repo, and refresh the
repo.
"""
if env.pkgfmt != "deb":
# We only support freight, which is only for deb packages. We'd need to
# add something that understands RPM repos as well if we want to add
# support for CentOS here.
print("Only pushing deb packages is supported, not pushing.")
return
run('mkdir -p /tmp/endaga-packages-deploy')
put(local_path='/tmp/endaga-packages-deploy/*.deb',
remote_path='/tmp/endaga-packages-deploy/')
sudo('freight add /tmp/endaga-packages-deploy/*.deb apt/%s' % repo_name)
sudo('freight cache apt/%s' % repo_name)
run('rm -r /tmp/endaga-packages-deploy')
shipping.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录