ADD: also push to docker hub
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
Dominik Meyer 2024-01-14 22:50:53 +01:00
parent bfe4e50410
commit 3f99d5f5a4
Signed by: byterazor
GPG Key ID: EABDA0FD5981BC97

View File

@ -76,7 +76,55 @@ steps:
- scripts/setupEnvironment.sh - 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 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 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: depends_on:
- build-amd64 - build-amd64
- build-arm64 - 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