clone/gitlab
All checks were successful
/ job (push) Successful in 12m13s

This commit is contained in:
Marc Beninca 2024-07-28 21:48:52 +02:00
parent e200ff583b
commit ee69c088c2
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 16 additions and 16 deletions

View file

@ -104,5 +104,4 @@ from various contexts of CA, CI and OCI / OS.
### .sh
* check if file & variable match
* clone branch if not gitlab
* support opensuse

View file

@ -17,24 +17,25 @@ COMMANDS_PREFIX = "spcd-"
def clone_project_branch() -> None:
step("Clone project branch")
log.info(projects)
split()
log.info(project)
split()
log.info(f"""\
if not projects.environment.get("GITLAB_CI"):
step("Clone project branch")
log.info(projects)
split()
log.info(project)
split()
log.info(f"""\
{project.url}
""")
run(
"git",
"clone",
"--branch",
project.branch,
"--",
project.url,
project.root,
)
run(
"git",
"clone",
"--branch",
project.branch,
"--",
project.url,
project.root,
)
def install_commands(path: str) -> None: