From 0a3200f62e76726f8a4bc0bf8e9bf27e547028b1 Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Wed, 8 Jan 2025 08:28:45 +0100 Subject: [PATCH] build: fix missing container defintion --- .drone.jsonnet | 77 ++++++++++++++++++++++++++++++++++---------------- 1 file changed, 52 insertions(+), 25 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index 3205b28..a7a9fcb 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -105,32 +105,59 @@ local push_pipelines(versions, architectures) = [ "build-"+arch for arch in architectures ], - steps: - [ - "scripts/setupEnvironment.sh", - "buildah manifest create redmine:"+version.tag, + steps: + [ + { + name: "Push " + version.tag, + image: "quay.io/buildah/stable", + privileged: true, + environment: + { + USERNAME: + { + from_secret: "username" + }, + PASSWORD: + { + from_secret: "password" + } + }, + volumes: + [ + { + name: "fedhq-ca-crt", + path: "/etc/ssl/certs2/" + + } + ], + commands: + [ + "scripts/setupEnvironment.sh", + "buildah manifest create redmine:"+version.tag, + ] + + + [ + "buildah manifest add redmine:" + version.tag + " registry.cloud.federationhq.de/redmine:"+version.tag + "-" + arch + for arch in architectures + ] + + + [ + "buildah manifest push --all redmine:"+version.tag + " docker://registry.cloud.federationhq.de/redmine:"+tag + for tag in [version.tag]+version.additional_tags + ] + + + [ + "buildah login -u $${USERNAME} -p $${PASSWORD} registry.hub.docker.com", + ] + + + [ + "buildah manifest push --all redmine:"+version.tag + " docker://registry.hub.docker.com/byterazor/redmine:"+tag + for tag in [version.tag]+version.additional_tags + ] + } ] - + - [ - "buildah manifest add redmine:" + version.tag + " registry.cloud.federationhq.de/redmine:"+version.tag + "-" + arch - for arch in architectures - ] - + - [ - "buildah manifest push --all redmine:"+version.tag + " docker://registry.cloud.federationhq.de/redmine:"+tag - for tag in [version.tag]+version.additional_tags - ] - + - [ - "buildah login -u $${USERNAME} -p $${PASSWORD} registry.hub.docker.com", - ] - + - [ - "buildah manifest push --all redmine:"+version.tag + " docker://registry.hub.docker.com/byterazor/redmine:"+tag - for tag in [version.tag]+version.additional_tags - ], - } - for version in versions + } + for version in versions ]; local push_github = {