Files
ansiblings/packages/nopy-cubes-core/cubes/git/clone/deploy.py
T
Benjamin Diedrichsen 7e703c93b1 streamline package naming
2026-07-29 13:07:34 +02:00

18 lines
342 B
Python

from pyinfra.operations import server
from pyinfra import host
USER = host.data.USER
REPO = host.data.REPO
APP = host.data.APP
server.shell(
name="Clone application",
commands=[
f"""
cd $HOME &&
git clone --recurse-submodules {REPO} {APP}
"""],
_sudo=True,
_sudo_user=USER,
_use_sudo_login=True
)