FIX: corrected push step
This commit is contained in:
parent
0cf8a9b3ee
commit
fc8311a991
43
.drone.yml
43
.drone.yml
@ -69,52 +69,25 @@ steps:
|
|||||||
- name: push
|
- name: push
|
||||||
image: quay.io/buildah/stable
|
image: quay.io/buildah/stable
|
||||||
privileged: true
|
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:
|
environment:
|
||||||
USERNAME:
|
USERNAME:
|
||||||
from_secret: username
|
from_secret: username
|
||||||
PASSWORD:
|
PASSWORD:
|
||||||
from_secret: password
|
from_secret: password
|
||||||
privileged: true
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: fedhq-ca-crt
|
- name: fedhq-ca-crt
|
||||||
path: /etc/ssl/certs2/
|
path: /etc/ssl/certs2/
|
||||||
commands:
|
commands:
|
||||||
- scripts/setupEnvironment.sh
|
- scripts/setupEnvironment.sh
|
||||||
- buildah login -u $${USERNAME} -p $${PASSWORD} docker.com
|
- buildah manifest create fhem:latest registry.cloud.federationhq.de/fhem:latest-arm64 registry.cloud.federationhq.de/fhem:latest-amd64
|
||||||
- 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 fhem:latest docker://registry.cloud.federationhq.de/fhem:latest
|
||||||
- buildah manifest push --all docker.com/byterazor/fhem:latest
|
- buildah login -u $${USERNAME} -p $${PASSWORD} registry.hub.docker.com
|
||||||
- buildah manifest rm docker.com/byterazor/fhem:latest
|
- buildah manifest push --all fhem:latest docker://registry.hub.docker.com/byterazor/fhem:latest
|
||||||
|
- buildah manifest fhem:latest
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- push
|
- build-amd64
|
||||||
|
- build-arm64
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: secret
|
kind: secret
|
||||||
|
Loading…
Reference in New Issue
Block a user