Compare commits

...

6 commits

Author SHA1 Message Date
8fb9aff2a9
−/web
Some checks failed
/ arch (push) Successful in 1m21s
/ alpine (push) Successful in 41s
/ fedora (push) Successful in 7m49s
/ opensuse (push) Successful in 2m21s
/ alma (push) Successful in 2m31s
/ ubuntu (push) Has been cancelled
/ debian (push) Has been cancelled
/ rocky (push) Has been cancelled
2024-10-13 20:30:35 +02:00
6baf14a79e
source ↔ target
Some checks failed
/ arch (push) Successful in 1m28s
/ alpine (push) Successful in 40s
/ fedora (push) Successful in 8m2s
/ opensuse (push) Successful in 2m28s
/ alma (push) Successful in 2m31s
/ rocky (push) Successful in 14m54s
/ ubuntu (push) Successful in 1m26s
/ debian (push) Failing after 59s
2024-10-13 17:59:35 +02:00
b97e408a10
branch/web
Some checks failed
/ arch (push) Successful in 1m26s
/ alpine (push) Successful in 41s
/ fedora (push) Successful in 7m53s
/ opensuse (push) Successful in 2m25s
/ alma (push) Successful in 2m33s
/ rocky (push) Failing after 5m38s
/ ubuntu (push) Failing after 1m3s
/ debian (push) Failing after 58s
2024-10-13 16:28:39 +02:00
e454f7fe9f
fix
Some checks failed
/ arch (push) Successful in 1m21s
/ alpine (push) Successful in 45s
/ fedora (push) Successful in 8m51s
/ opensuse (push) Successful in 2m23s
/ alma (push) Successful in 2m30s
/ rocky (push) Successful in 45m29s
/ ubuntu (push) Successful in 1m15s
/ debian (push) Failing after 58s
2024-10-08 20:09:44 +02:00
bd31e060ab
index.html
Some checks failed
/ arch (push) Failing after 1m16s
/ alpine (push) Failing after 42s
/ debian (push) Has been cancelled
/ opensuse (push) Has been cancelled
/ ubuntu (push) Has been cancelled
/ alma (push) Has been cancelled
/ rocky (push) Has been cancelled
/ fedora (push) Has been cancelled
2024-10-08 20:05:21 +02:00
283e888eea
build 2024-10-08 20:02:33 +02:00
2 changed files with 15 additions and 4 deletions

11
build.py Executable file
View file

@ -0,0 +1,11 @@
#! /usr/bin/env python3
"""Dummy build."""
from pathlib import Path
from rwx.fs import make_directory, write
if __name__ == "__main__":
out = Path(__file__).parent / "out"
make_directory(out)
write(out / "index.html", "spcd.rwx.work")

View file

@ -30,20 +30,20 @@ def spcd_check_project() -> None:
def spcd_synchronize(
target: str | None = None, source: str | None = None
source: str | None = None, target: str | None = None
) -> None:
"""Synchronize output towards a target.
:param target: where to deploy to
:type target: str | None
:param source: where to deploy from
:type source: str | None
:param target: where to deploy to
:type target: str | None
"""
if not target:
user = "cd"
host = env.SPCD_PROJECT_PATH
root = (
Path(os.sep) / user / project.branch / projects.group / project.name
Path(os.sep) / user / projects.group / project.name / project.branch
)
target = f"{user}@{host}:{root}"
if not source: