From d978a92c97a1e4b18cc4d505947ce44bdcf3af34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sofus=20Albert=20H=C3=B8gsbro=20Rose?= Date: Sun, 13 Aug 2023 22:47:20 +0200 Subject: [PATCH] fix: Made versioning independent, now 0.1.0. --- run.py | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/run.py b/run.py index daff41a..c4b5a2a 100755 --- a/run.py +++ b/run.py @@ -40,7 +40,7 @@ CMD_DEPENDENCIES = [ ] IMAGE_NAME = "docker-mdbook" -IMAGE_VERSION = ("0", "4", "34") +IMAGE_VERSION = ("0", "1", "0") REGISTRY_HOST = "git.sofus.io" REGISTRY_USER = "python-support" @@ -143,23 +143,6 @@ def cmd_exists(cmd: str) -> bool: return shutil.which(cmd) is not None - -#################### -# - Checks -#################### -def check_mdbook_version_matches() -> None: - with cd_script_dir(): - with open('Dockerfile', 'r') as f: - mdbook_version_lines = [ - line for line in f.readlines() - if line.strip() == f'ARG MDBOOK_VERSION="{".".join(IMAGE_VERSION)}"' - ] - - if not len(mdbook_version_lines) == 1: - print("IMAGE_VERSION doesn't match MDBOOK_VERSION") - sys.exit(1) - - #################### # - Actions #################### @@ -227,9 +210,6 @@ def action_publish() -> None: # - Script #################### if __name__ == "__main__": - # Check version match w/MDBOOK in Dockerfile - check_mdbook_version_matches() - # Check Available Commands for cmd in CMD_DEPENDENCIES: if not cmd_exists(cmd) :