FIX: corrected push step

This commit is contained in:
Dominik Meyer 2024-01-16 09:50:36 +01:00
parent 0cf8a9b3ee
commit fc8311a991
Signed by: byterazor
GPG Key ID: EABDA0FD5981BC97
1 changed files with 8 additions and 35 deletions

View File

@ -69,52 +69,25 @@ steps:
- name: push
image: quay.io/buildah/stable
privileged: true
volumes:
- name: fedhq-ca-crt
path: /etc/ssl/certs2/
commands:
- 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
depends_on:
- build-amd64
- 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} docker.com
- buildah manifest create docker.com/byterazor/fhem:latest registry.cloud.federationhq.de/fhem:latest-arm64 registry.cloud.federationhq.de/fhem:latest-amd64
- buildah manifest push --all docker.com/byterazor/fhem:latest
- buildah manifest rm docker.com/byterazor/fhem:latest
- buildah manifest create fhem:latest registry.cloud.federationhq.de/fhem:latest-arm64 registry.cloud.federationhq.de/fhem:latest-amd64
- buildah manifest push --all fhem:latest docker://registry.cloud.federationhq.de/fhem:latest
- buildah login -u $${USERNAME} -p $${PASSWORD} registry.hub.docker.com
- buildah manifest push --all fhem:latest docker://registry.hub.docker.com/byterazor/fhem:latest
- buildah manifest fhem:latest
depends_on:
- push
- build-amd64
- build-arm64
---
kind: secret