Signed-off-by: Christian Richter <crichter@owncloud.com>
This commit is contained in:
Christian Richter
2022-05-12 11:31:48 +02:00
parent ca8d7012ba
commit dab39f2b60
9 changed files with 23 additions and 177 deletions

View File

@@ -1,13 +1,18 @@
def main(ctx):
return [
stepPR("amd64"),
stepPR("arm64"),
stepMergeMaster("amd64"),
stepMergeMaster("arm64"),
stepPR("amd64", "motsognir"),
stepPR("arm64", "motsognir"),
stepMergeMaster("amd64", "motsognir"),
stepMergeMaster("arm64", "motsognir"),
stepPR("amd64", "webtest"),
stepPR("arm64", "motsognir"),
stepMergeMaster("amd64", "motsognir"),
stepMergeMaster("arm64", "motsognir"),
]
def stepPR(arch):
def stepPR(arch, path):
return {
"kind": "pipeline",
"type": "docker",
@@ -21,16 +26,10 @@ def stepPR(arch):
"name": "build-image-%s" % (arch),
"image": "plugins/docker",
"settings": {
"dockerfile": "motsognir/Dockerfile",
"repo": "dragonchaser/motsognir",
"dockerfile": "%s/Dockerfile" % (path),
"repo": "dragonchaser/%s" % (path),
"dry_run": "true",
"tag": "latest-%s" % (arch),
"username": {
"from_secret": "dockerhub-user"
},
"password": {
"from_secret": "dockerhub-password"
}
}
},
],
@@ -41,7 +40,7 @@ def stepPR(arch):
},
}
def stepMergeMaster(arch):
def stepMergeMaster(arch, path):
return {
"kind": "pipeline",
"type": "docker",
@@ -55,8 +54,8 @@ def stepMergeMaster(arch):
"name": "build-build-and-publish-image-%s" % (arch),
"image": "plugins/docker",
"settings": {
"dockerfile": "motsognir/Dockerfile",
"repo": "dragonchaser/motsognir",
"dockerfile": "%s/Dockerfile" % (path),
"repo": "dragonchaser/%s" % (path),
"dry_run": "false",
"tag": "latest-%s" % (arch),
"username": {