diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a6570fa..312e95a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,7 +59,6 @@ clj-image-publish: script: - cd infrastructure/clj && pyb image publish - python-image-publish: <<: *img <<: *tag_only diff --git a/build.py b/build.py index c0377b4..c7487bb 100644 --- a/build.py +++ b/build.py @@ -33,7 +33,7 @@ default_task = "dev" name = "ddadevops" MODULE = "not-used" PROJECT_ROOT_PATH = "." -version = "4.3.2-dev" +version = "4.3.2-dev1" summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud" description = __doc__ authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")] @@ -103,6 +103,10 @@ def initialize(project): "infrastructure/clj-cljs/build.py", "infrastructure/clj/build.py", ], + "release_artifacts": [], + "release_artifact_server_url": "https://repo.prod.meissa.de", + "release_organisation": "meissa", + "release_repository_name": "dda-devops-build", } build = ReleaseMixin(project, input) @@ -176,7 +180,11 @@ def prepare(project): def tag(project): build = get_devops_build(project) build.tag_bump_and_push_release() - #TODO: build.publish_artifacts() + + +@task +def publish_artifacts(project): + build.publish_artifacts() def release(project): diff --git a/src/main/python/ddadevops/domain/release.py b/src/main/python/ddadevops/domain/release.py index e08ae6e..99fa091 100644 --- a/src/main/python/ddadevops/domain/release.py +++ b/src/main/python/ddadevops/domain/release.py @@ -73,7 +73,6 @@ class Release(Validateable): result += self.__validate_is_not_empty__("release_artifact_server_url") result += self.__validate_is_not_empty__("release_organisation") result += self.__validate_is_not_empty__("release_repository_name") - result += self.__validate_is_not_empty__("release_artifacts") result += self.__validate_is_not_empty__("release_artifact_token") return result diff --git a/src/test/python/domain/test_release.py b/src/test/python/domain/test_release.py index efa82a6..968ce69 100644 --- a/src/test/python/domain/test_release.py +++ b/src/test/python/domain/test_release.py @@ -68,7 +68,7 @@ def test_should_calculate_forgejo_release_api_endpoint(): sut = Release( devops_config( { - "release_artifacts": ["x"], + "release_artifacts": [], "release_artifact_token": "y", "release_artifact_server_url": "https://repo.prod.meissa.de", "release_organisation": "meissa",