From f8d64ca36eb52f11f6da47711ab6b74ff6b6e1ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sofus=20Albert=20H=C3=B8gsbro=20Rose?= Date: Sun, 13 Aug 2023 22:51:26 +0200 Subject: [PATCH] fix: Adapted to gitea infrastructure. --- Dockerfile | 2 +- README.md | 6 +++--- run.py | 14 ++++---------- 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index be70c3a..4d454bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ #################### # - Stage: SSG #################### -FROM git.sofus.io/so-rose/docker-mdbook:0.4.34 AS base +FROM git.sofus.io/python-support/docker-mdbook:0.1.0 AS base COPY . /src RUN mdbook build /src --dest-dir /dist diff --git a/README.md b/README.md index b097cf8..b2ff93b 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ You'll need to have the following commands available: Once that's set, go ahead and grab (`clone`, in `git` terms) this repo: ```bash -git clone https://git.sofus.io/so-rose/site-support.git +git clone https://git.sofus.io/python-support/site-support.git cd site-support ``` @@ -100,7 +100,7 @@ git commit -m "feat: New page!" ``` That's it! Give it a `git push`. -All that's left is to start a [Pull Request](https://git.sofus.io/so-rose/site-support/pulls), and wait for someone on the team to examine your contribution. +All that's left is to start a [Pull Request](https://git.sofus.io/python-support/site-support/pulls), and wait for someone on the team to examine your contribution. When several people collaborate, the workflow might end up looking something like this: ```mermaid @@ -125,4 +125,4 @@ gitGraph # Conclusion You should have everything you need to get started. -If anything is still confusing, don't hesitate to report an [Issue](https://git.sofus.io/so-rose/site-support/issues)! +If anything is still confusing, don't hesitate to report an [Issue](https://git.sofus.io/python-support/site-support/issues)! diff --git a/run.py b/run.py index 47d4b53..cd1ba62 100755 --- a/run.py +++ b/run.py @@ -40,10 +40,10 @@ CMD_DEPENDENCIES = [ ] IMAGE_NAME = "site-support" -IMAGE_VERSION = ("0", "1", "0") +IMAGE_VERSION = ("0", "1", "1") REGISTRY_HOST = "git.sofus.io" -REGISTRY_USER = "so-rose" +REGISTRY_USER = "python-support" REGISTRY_PASSWORD = lambda: subprocess.check_output( ['pass', 'services/home/git.sofus.io/container-registry-token'] ).decode('ascii').strip() @@ -52,18 +52,12 @@ REGISTRY_PASSWORD = lambda: subprocess.check_output( # - Help Text #################### def action_help() -> None: - print(f"""This script provides one-click development, CI, and deployment, - to support the use of the {IMAGE_NAME} project. + print("""This script provides one-click development, CI, and deployment, + to support the use of the project. Usage: echo -e "./run.py [OPTION] [EXTRAS]" - Program Information: - Version - => {".".join(IMAGE_VERSION)} - OCI Container - => {REGISTRY_HOST}/{REGISTRY_USER}/{IMAGE_NAME}:{IMAGE_VERSION[0] - The following commands must be available: podman => This project is developed and run in podman containers.