From 3f99d5f5a4ec79a1607fe52e48d624e0b55c3c15 Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Sun, 14 Jan 2024 22:50:53 +0100 Subject: [PATCH] ADD: also push to docker hub --- .drone.yml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 20268c8..3122da1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -76,7 +76,55 @@ steps: - scripts/setupEnvironment.sh - buildah manifest create registry.cloud.federationhq.de/fhem:latest registry.cloud.federationhq.de/fhem:latest-arm64 registry.cloud.federationhq.de/fhem:latest-amd64 - buildah manifest push registry.cloud.federationhq.de/fhem:latest docker://registry.cloud.federationhq.de/fhem:latest - - buildah manifest rm registry.cloud.federationhq.de/fhem:latest depends_on: - build-amd64 - - build-arm64 \ No newline at end of file + - build-arm64 + + +--- +kind: pipeline +type: kubernetes +name: push-docker-hub +node_selector: + kubernetes.io/arch: amd64 + +volumes: +- name: fedhq-ca-crt + config_map: + name: fedhq-ca-crt + default_mode: 420 # same as 644 in octal, or u+w,a+r + optional: false + +steps: + - name: push + image: quay.io/buildah/stable + environment: + USERNAME: + from_secret: username + PASSWORD: + from_secret: password + privileged: true + volumes: + - name: fedhq-ca-crt + path: /etc/ssl/certs2/ + commands: + - scripts/setupEnvironment.sh + - buildah login -u ${USERNAME} -p ${PASSWORD} hub.docker.com + - buildah manifest push registry.cloud.federationhq.de/fhem:latest docker://hub.docker.com/byterazor/fhem:latest + - buildah manifest rm registry.cloud.federationhq.de/fhem:latest +depends_on: + - push + +--- +kind: secret +name: username +get: + path: docker + name: username + +--- +kind: secret +name: password +get: + path: docker + name: secret \ No newline at end of file