Compare commits

...

4 commits

Author SHA1 Message Date
483c2b8bba bump version to: 4.3.2-dev 2023-08-02 16:50:02 +02:00
2c2a88eced release: 4.3.1 2023-08-02 16:50:02 +02:00
577c717a87 fix backend init 2023-08-02 16:49:35 +02:00
1585f15582 fix linting 2023-08-02 16:49:22 +02:00
9 changed files with 38 additions and 35 deletions

View file

@ -33,7 +33,7 @@ default_task = "dev"
name = "ddadevops"
MODULE = "not-used"
PROJECT_ROOT_PATH = "."
version = "4.3.1-dev"
version = "4.3.2-dev"
summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud"
description = __doc__
authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")]

View file

@ -6,7 +6,7 @@ from ddadevops import *
name = "ddadevops"
MODULE = "clj-cljs"
PROJECT_ROOT_PATH = "../.."
version = "4.3.1-dev"
version = "4.3.2-dev"
@init
def initialize(project):

View file

@ -6,7 +6,7 @@ from ddadevops import *
name = "ddadevops"
MODULE = "clj"
PROJECT_ROOT_PATH = "../.."
version = "4.3.1-dev"
version = "4.3.2-dev"
@init
def initialize(project):

View file

@ -6,7 +6,7 @@ from ddadevops import *
name = "ddadevops"
MODULE = "ddadevops"
PROJECT_ROOT_PATH = "../.."
version = "4.3.1-dev"
version = "4.3.2-dev"
@init

View file

@ -6,7 +6,7 @@ from ddadevops import *
name = "ddadevops"
MODULE = "dind"
PROJECT_ROOT_PATH = "../.."
version = "4.3.1-dev"
version = "4.3.2-dev"
@init

View file

@ -6,7 +6,7 @@ from ddadevops import *
name = "ddadevops"
MODULE = "python"
PROJECT_ROOT_PATH = "../.."
version = "4.3.1-dev"
version = "4.3.2-dev"
@init

View file

@ -1,47 +1,44 @@
from pybuilder.core import Project
from .devops_build import DevopsBuild
from .domain import MixinType
"""
Functional Req:
# """
# Functional Req:
General process for deploying prebuilt (meissa) binaries to our own repo server.
# General process for deploying prebuilt (meissa) binaries to our own repo server.
[0]
get artifact deployment url
# [0]
# get artifact deployment url
[1]
build ubejarServer
build ubejarDesktop
build ubejarSyspec
# [1]
# build ubejarServer
# build ubejarDesktop
# build ubejarSyspec
[2]
get release token
# [2]
# get release token
[3]
get release tag
# [3]
# get release tag
[4]
post a json message containting [3] to [0], watching stdout for answers
authorized by [2]
validate if [4] was successful by reading stdout
or create error message containing ID of release
# [4]
# post a json message containting [3] to [0], watching stdout for answers
# authorized by [2]
# validate if [4] was successful by reading stdout
# or create error message containing ID of release
[5]
get release-id
print release-id
# [5]
# get release-id
# print release-id
[6]
generate sha256 sums & generate sha512 sums of results of [1]
# [6]
# generate sha256 sums & generate sha512 sums of results of [1]
[7]
push results of [1] & [6] to [0]/[5]
"""
# [7]
# push results of [1] & [6] to [0]/[5]
# """
class ArtifactDeploymentMixin(DevopsBuild):
def __init__(self, project: Project, inp: dict):
super().__init__(project, inp)

View file

@ -36,6 +36,8 @@ class Aws(Validateable, CredentialMappingDefault):
result = {}
if self.aws_as_backend:
result = {
"access_key": self.aws_access_key,
"secret_key": self.aws_secret_key,
"bucket": self.aws_bucket,
"key": self.__bucket_key__(),
"region": self.aws_region,

View file

@ -41,6 +41,8 @@ def test_should_calculate_backend_config():
{
"module": "dns_aws",
"stage": "prod",
"aws_access_key": "aws_access_key",
"aws_secret_key": "aws_secret_key",
"aws_bucket": "meissa-configuration",
"aws_bucket_kms_key_id": "arn:aws:kms:eu-central-1:907507348333:alias/meissa-configuration",
"aws_region": "eu-central-1",
@ -48,6 +50,8 @@ def test_should_calculate_backend_config():
)
)
assert {
"access_key": "aws_access_key",
"secret_key": "aws_secret_key",
"bucket": "meissa-configuration",
"key": "prod/dns_aws",
"kms_key_id": "arn:aws:kms:eu-central-1:907507348333:alias/meissa-configuration",