Compare commits

...

2 commits

Author SHA1 Message Date
1fff46986e create an empty release 2023-08-15 08:23:00 +02:00
ab8bb7f400 allow empty artifacts 2023-08-15 08:21:06 +02:00
4 changed files with 12 additions and 6 deletions

View file

@ -43,7 +43,7 @@ pypi-stable:
<<: *tag_only
stage: upload
script:
- pyb -P version=$CI_COMMIT_TAG publish upload
- pyb -P version=$CI_COMMIT_TAG publish upload publish_artifacts
clj-cljs-image-publish:
<<: *img
@ -59,7 +59,6 @@ clj-image-publish:
script:
- cd infrastructure/clj && pyb image publish
python-image-publish:
<<: *img
<<: *tag_only

View file

@ -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):

View file

@ -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

View file

@ -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",