ScriptCollection 3.5.131__py3-none-any.whl → 3.5.133__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ScriptCollection/ScriptCollectionCore.py +1 -1
- ScriptCollection/TasksForCommonProjectStructure.py +13 -12
- {scriptcollection-3.5.131.dist-info → scriptcollection-3.5.133.dist-info}/METADATA +1 -1
- {scriptcollection-3.5.131.dist-info → scriptcollection-3.5.133.dist-info}/RECORD +7 -7
- {scriptcollection-3.5.131.dist-info → scriptcollection-3.5.133.dist-info}/WHEEL +0 -0
- {scriptcollection-3.5.131.dist-info → scriptcollection-3.5.133.dist-info}/entry_points.txt +0 -0
- {scriptcollection-3.5.131.dist-info → scriptcollection-3.5.133.dist-info}/top_level.txt +0 -0
@@ -1427,7 +1427,7 @@ class TasksForCommonProjectStructure:
|
|
1427
1427
|
self.__sc.format_xml_file(sbom_folder+f"/{codeunitname}.{codeunitversion}.sbom.xml")
|
1428
1428
|
|
1429
1429
|
@GeneralUtilities.check_arguments
|
1430
|
-
def push_docker_build_artifact(self, push_artifacts_file: str, registry: str, verbosity: int, push_readme: bool, commandline_arguments: list[str], repository_folder_name: str,
|
1430
|
+
def push_docker_build_artifact(self, push_artifacts_file: str, registry: str, verbosity: int, push_readme: bool, commandline_arguments: list[str], repository_folder_name: str, remote_image_name: str = None) -> None:
|
1431
1431
|
folder_of_this_file = os.path.dirname(push_artifacts_file)
|
1432
1432
|
filename = os.path.basename(push_artifacts_file)
|
1433
1433
|
codeunitname_regex: str = "([a-zA-Z0-9]+)"
|
@@ -1445,22 +1445,23 @@ class TasksForCommonProjectStructure:
|
|
1445
1445
|
image_file = sc.find_file_by_extension(applicationimage_folder, "tar")
|
1446
1446
|
image_filename = os.path.basename(image_file)
|
1447
1447
|
codeunit_version = self.get_version_of_codeunit(os.path.join(codeunit_folder, f"{codeunitname}.codeunit.xml"))
|
1448
|
-
if
|
1449
|
-
|
1450
|
-
|
1451
|
-
|
1452
|
-
|
1453
|
-
|
1448
|
+
if remote_image_name is None:
|
1449
|
+
remote_image_name = codeunitname
|
1450
|
+
remote_image_name = remote_image_name.lower()
|
1451
|
+
local_image_name = codeunitname.lower()
|
1452
|
+
remote_repo = f"{registry}/{remote_image_name}"
|
1453
|
+
remote_image_latest = f"{remote_repo}:latest"
|
1454
|
+
remote_image_version = f"{remote_repo}:{codeunit_version}"
|
1454
1455
|
GeneralUtilities.write_message_to_stdout("Load image...")
|
1455
1456
|
sc.run_program("docker", f"load --input {image_filename}", applicationimage_folder, verbosity=verbosity)
|
1456
1457
|
GeneralUtilities.write_message_to_stdout("Tag image...")
|
1457
|
-
sc.run_program("docker", f"tag {
|
1458
|
-
sc.run_program("docker", f"tag {
|
1458
|
+
sc.run_program("docker", f"tag {local_image_name}:{codeunit_version} {remote_image_latest}", verbosity=verbosity)
|
1459
|
+
sc.run_program("docker", f"tag {local_image_name}:{codeunit_version} {remote_image_version}", verbosity=verbosity)
|
1459
1460
|
GeneralUtilities.write_message_to_stdout("Push image...")
|
1460
|
-
sc.run_program("docker", f"push {
|
1461
|
-
sc.run_program("docker", f"push {
|
1461
|
+
sc.run_program("docker", f"push {remote_image_latest}", verbosity=verbosity)
|
1462
|
+
sc.run_program("docker", f"push {remote_image_version}", verbosity=verbosity)
|
1462
1463
|
if push_readme:
|
1463
|
-
sc.run_program("docker-pushrm", f"{
|
1464
|
+
sc.run_program("docker-pushrm", f"{remote_repo}", codeunit_folder, verbosity=verbosity)
|
1464
1465
|
|
1465
1466
|
@GeneralUtilities.check_arguments
|
1466
1467
|
def get_dependent_code_units(self, codeunit_file: str) -> list[str]:
|
@@ -7,11 +7,11 @@ ScriptCollection/ProgramRunnerBase.py,sha256=2kMIAqdc65UjBAddOZkzy_aFx9h5roZ5a4b
|
|
7
7
|
ScriptCollection/ProgramRunnerEpew.py,sha256=4pjEd0r9Fcz3TTDv0MdTSd5KkigYXcWUVI1X43regfU,6477
|
8
8
|
ScriptCollection/ProgramRunnerPopen.py,sha256=BPY7-ZMIlqT7JOKz8qlB5c0laF2Js-ijzqk09GxZC48,3821
|
9
9
|
ScriptCollection/SCLog.py,sha256=Dd2P8vH2PA830wAv6bchlMHHdGE_7At-F4WQY5w4XdA,4016
|
10
|
-
ScriptCollection/ScriptCollectionCore.py,sha256=
|
11
|
-
ScriptCollection/TasksForCommonProjectStructure.py,sha256=
|
10
|
+
ScriptCollection/ScriptCollectionCore.py,sha256=sW_s87osRvqjyXNpEML5EU_DfVJUXx17n3WD08btME8,128945
|
11
|
+
ScriptCollection/TasksForCommonProjectStructure.py,sha256=jb7Nlejn1WDw58gV5VV48KdLK2Z58yPId7WZkwWuz4o,235683
|
12
12
|
ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
|
-
scriptcollection-3.5.
|
14
|
-
scriptcollection-3.5.
|
15
|
-
scriptcollection-3.5.
|
16
|
-
scriptcollection-3.5.
|
17
|
-
scriptcollection-3.5.
|
13
|
+
scriptcollection-3.5.133.dist-info/METADATA,sha256=1xLr28zJBfGx2HTwxApOxUbjuoMjlc-HK7U1IlKhD0w,7694
|
14
|
+
scriptcollection-3.5.133.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
15
|
+
scriptcollection-3.5.133.dist-info/entry_points.txt,sha256=3qMbfZEMhc_VTJj-bcLwB8AWcn9iXSB3l0AWpuu52Bs,3689
|
16
|
+
scriptcollection-3.5.133.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
|
17
|
+
scriptcollection-3.5.133.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|