Merge "Publish images on DockerHub"
This commit is contained in:
commit
1a57f1fea7
|
@ -32,6 +32,12 @@
|
|||
files: *ceph-suse15-files
|
||||
- openstack-helm-images-ceph-config-helper-ubuntu_xenial:
|
||||
files: *ceph-ubuntuxenial-files
|
||||
post:
|
||||
jobs:
|
||||
- publish-openstack-helm-images-ceph-config-helper-suse_15:
|
||||
files: *ceph-suse15-files
|
||||
- publish-openstack-helm-images-ceph-config-helper-ubuntu_xenial:
|
||||
files: *ceph-ubuntuxenial-files
|
||||
periodic:
|
||||
jobs:
|
||||
- openstack-helm-images-ceph-config-helper-suse_15
|
||||
|
@ -58,3 +64,19 @@
|
|||
parent: openstack-helm-images-ceph-config-helper
|
||||
vars:
|
||||
distro: "ubuntu_xenial"
|
||||
|
||||
- job:
|
||||
name: publish-openstack-helm-images-ceph-config-helper-suse_15
|
||||
parent: openstack-helm-images-ceph-config-helper-suse_15
|
||||
post-run: zuul.d/playbooks/publish.yml
|
||||
post-review: true
|
||||
secrets:
|
||||
- openstack_helm_images_publish_credentials
|
||||
|
||||
- job:
|
||||
name: publish-openstack-helm-images-ceph-config-helper-ubuntu_xenial
|
||||
parent: openstack-helm-images-ceph-config-helper-ubuntu_xenial
|
||||
post-run: zuul.d/playbooks/publish.yml
|
||||
post-review: true
|
||||
secrets:
|
||||
- openstack_helm_images_publish_credentials
|
||||
|
|
|
@ -32,6 +32,12 @@
|
|||
files: *gate-debian-files
|
||||
- openstack-helm-images-gate-utils-suse_15:
|
||||
files: *gate-suse15-files
|
||||
post:
|
||||
jobs:
|
||||
- publish-openstack-helm-images-gate-utils-debian:
|
||||
files: *gate-debian-files
|
||||
- publish-openstack-helm-images-gate-utils-suse_15:
|
||||
files: *gate-suse15-files
|
||||
periodic:
|
||||
jobs:
|
||||
- openstack-helm-images-gate-utils-debian
|
||||
|
@ -58,3 +64,19 @@
|
|||
parent: openstack-helm-images-gate-utils
|
||||
vars:
|
||||
distro: "suse_15"
|
||||
|
||||
- job:
|
||||
name: publish-openstack-helm-images-gate-utils-debian
|
||||
parent: openstack-helm-images-gate-utils-debian
|
||||
post-review: true
|
||||
post-run: zuul.d/playbooks/publish.yml
|
||||
secrets:
|
||||
- openstack_helm_images_publish_credentials
|
||||
|
||||
- job:
|
||||
name: publish-openstack-helm-images-gate-utils-suse_15
|
||||
parent: openstack-helm-images-gate-utils-suse_15
|
||||
post-review: true
|
||||
post-run: zuul.d/playbooks/publish.yml
|
||||
secrets:
|
||||
- openstack_helm_images_publish_credentials
|
||||
|
|
|
@ -33,6 +33,12 @@
|
|||
files: *libvirt-suse15-files
|
||||
- openstack-helm-images-libvirt-ubuntu_xenial:
|
||||
files: *libvirt-ubuntuxenial-files
|
||||
post:
|
||||
jobs:
|
||||
- publish-openstack-helm-images-libvirt-suse_15:
|
||||
files: *libvirt-suse15-files
|
||||
- publish-openstack-helm-images-libvirt-ubuntu_xenial:
|
||||
files: *libvirt-ubuntuxenial-files
|
||||
periodic:
|
||||
jobs:
|
||||
- openstack-helm-images-libvirt-suse_15
|
||||
|
@ -59,3 +65,19 @@
|
|||
parent: openstack-helm-images-libvirt
|
||||
vars:
|
||||
distro: "ubuntu_xenial"
|
||||
|
||||
- job:
|
||||
name: publish-openstack-helm-images-libvirt-ubuntu_xenial
|
||||
parent: openstack-helm-images-libvirt-ubuntu_xenial
|
||||
post-run: zuul.d/playbooks/publish.yml
|
||||
post-review: true
|
||||
secrets:
|
||||
- openstack_helm_images_publish_credentials
|
||||
|
||||
- job:
|
||||
name: publish-openstack-helm-images-libvirt-suse_15
|
||||
parent: openstack-helm-images-libvirt-suse_15
|
||||
post-run: zuul.d/playbooks/publish.yml
|
||||
post-review: true
|
||||
secrets:
|
||||
- openstack_helm_images_publish_credentials
|
||||
|
|
|
@ -25,6 +25,10 @@
|
|||
jobs:
|
||||
- openstack-helm-images-mariadb-ubuntu_xenial:
|
||||
files: *mariadb-ubuntuxenial-files
|
||||
post:
|
||||
jobs:
|
||||
- publish-openstack-helm-images-mariadb-ubuntu_xenial:
|
||||
files: *mariadb-ubuntuxenial-files
|
||||
periodic:
|
||||
jobs:
|
||||
- openstack-helm-images-mariadb-ubuntu_xenial
|
||||
|
@ -44,3 +48,11 @@
|
|||
parent: openstack-helm-images-mariadb
|
||||
vars:
|
||||
distro: "ubuntu_xenial"
|
||||
|
||||
- job:
|
||||
name: publish-openstack-helm-images-mariadb-ubuntu_xenial
|
||||
parent: openstack-helm-images-mariadb-ubuntu_xenial
|
||||
post-run: zuul.d/playbooks/publish.yml
|
||||
post-review: true
|
||||
secrets:
|
||||
- openstack_helm_images_publish_credentials
|
||||
|
|
|
@ -32,6 +32,12 @@
|
|||
files: *ovs-debian-files
|
||||
- openstack-helm-images-openvswitch-suse_15:
|
||||
files: *ovs-suse15-files
|
||||
post:
|
||||
jobs:
|
||||
- publish-openstack-helm-images-openvswitch-debian:
|
||||
files: *ovs-debian-files
|
||||
- publish-openstack-helm-images-openvswitch-suse_15:
|
||||
files: *ovs-suse15-files
|
||||
periodic:
|
||||
jobs:
|
||||
- openstack-helm-images-openvswitch-debian
|
||||
|
@ -58,3 +64,19 @@
|
|||
parent: openstack-helm-images-openvswitch
|
||||
vars:
|
||||
distro: "suse_15"
|
||||
|
||||
- job:
|
||||
name: publish-openstack-helm-images-openvswitch-debian
|
||||
parent: openstack-helm-images-openvswitch-debian
|
||||
post-run: zuul.d/playbooks/publish.yml
|
||||
post-review: true
|
||||
secrets:
|
||||
- openstack_helm_images_publish_credentials
|
||||
|
||||
- job:
|
||||
name: publish-openstack-helm-images-openvswitch-suse_15
|
||||
parent: openstack-helm-images-openvswitch-suse_15
|
||||
post-run: zuul.d/playbooks/publish.yml
|
||||
post-review: true
|
||||
secrets:
|
||||
- openstack_helm_images_publish_credentials
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
- hosts: all[0]
|
||||
tasks:
|
||||
#TODO(evrardjp): Add quay.io support when we have the appropriate credentials.
|
||||
#See also: https://review.openstack.org/#/c/624713/7/zuul.d/playbooks/publish.yml
|
||||
- name: Login to Docker Hub
|
||||
command: docker login -u {{ openstack_helm_images_publish_credentials.dockerhub_user }} -p {{ openstack_helm_images_publish_credentials.dockerhub_password }}
|
||||
no_log: True
|
||||
|
||||
- name: List unique images of this build, in the format "registry:tag id"
|
||||
shell: docker images | awk '/openstackhelm/ {print $1 ":" $2 " " $3}' | uniq -f 1
|
||||
changed_when: false
|
||||
register: detailed_image_list
|
||||
|
||||
- name: Show found images
|
||||
debug:
|
||||
var: detailed_image_list.stdout_lines
|
||||
|
||||
- name: Tag all images for publication to DockerHub
|
||||
shell: "docker tag {{ item.split(' ')[1] }} {{ item.split(' ')[0] | regex_replace('^.*openstackhelm/(.*)$', 'openstackhelm/\\1') }}"
|
||||
loop: "{{ detailed_image_list.stdout_lines }}"
|
||||
|
||||
- name: Push images to Docker Hub
|
||||
command: "docker push {{ item.split(' ')[0] | regex_replace('^.*openstackhelm/(.*)$', 'openstackhelm/\\1') }}"
|
||||
loop: "{{ detailed_image_list.stdout_lines }}"
|
|
@ -0,0 +1,25 @@
|
|||
- secret:
|
||||
name: openstack_helm_images_publish_credentials
|
||||
data:
|
||||
dockerhub_user: !encrypted/pkcs1-oaep
|
||||
- ElBadZeuRFwbxgDHz+TOCdpaqHMAAA0E2WYnplrREC3ndO25CB0zmoBUaYMHObnykM1Yv
|
||||
K/bcfWtlcj8Ucz/U8KIDPBVED7T4OqhhUeIIc+8cw5QuQ9now0ltk8S0/fdJ0qHmNypz9
|
||||
lnbhE0Ir7NPWCSHRIE61BasVcem5QPMre9rNy91rCby8r0+onHlyArRAIoxF3V5Y6DazC
|
||||
DeUDw8fIYZsIfMa5/uuGLf1PW4xCyLhiOiZ0Sr0e454l68tjGGniPpYGIxnjAMKy+hwSb
|
||||
dTX+wc+GP7/7XJnQJ3JcGKt5fYrGgkdzljUeMndfMuKq5WBXkH1EaT6YWJ6V7qAzQk3WN
|
||||
0QHNO80Wa4Uu8Yyyeh9HFXut5VCKLQGOObG8t7Rw75Yf4TXKdF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eK29bCgXcH3x8=
|
|
@ -25,6 +25,10 @@
|
|||
jobs:
|
||||
- openstack-helm-images-tempest-ubuntu_xenial:
|
||||
files: *tempest-ubuntuxenial-files
|
||||
post:
|
||||
jobs:
|
||||
- publish-openstack-helm-images-tempest-ubuntu_xenial:
|
||||
files: *tempest-ubuntuxenial-files
|
||||
periodic:
|
||||
jobs:
|
||||
- openstack-helm-images-tempest-ubuntu_xenial
|
||||
|
@ -44,3 +48,11 @@
|
|||
parent: openstack-helm-images-tempest
|
||||
vars:
|
||||
distro: "ubuntu_xenial"
|
||||
|
||||
- job:
|
||||
name: publish-openstack-helm-images-tempest-ubuntu_xenial
|
||||
parent: openstack-helm-images-tempest-ubuntu_xenial
|
||||
post-run: zuul.d/playbooks/publish.yml
|
||||
post-review: true
|
||||
secrets:
|
||||
- openstack_helm_images_publish_credentials
|
||||
|
|
|
@ -32,6 +32,12 @@
|
|||
files: *vbmc-centos7-files
|
||||
- openstack-helm-images-vbmc-suse_15:
|
||||
files: *vbmc-suse15-files
|
||||
post:
|
||||
jobs:
|
||||
- publish-openstack-helm-images-vbmc-centos_7:
|
||||
files: *vbmc-centos7-files
|
||||
- publish-openstack-helm-images-vbmc-suse_15:
|
||||
files: *vbmc-suse15-files
|
||||
periodic:
|
||||
jobs:
|
||||
- openstack-helm-images-vbmc-centos_7
|
||||
|
@ -55,3 +61,19 @@
|
|||
parent: openstack-helm-images-vbmc
|
||||
vars:
|
||||
distro: "suse_15"
|
||||
|
||||
- job:
|
||||
name: publish-openstack-helm-images-vbmc-centos_7
|
||||
parent: openstack-helm-images-vbmc-centos_7
|
||||
post-run: zuul.d/playbooks/publish.yml
|
||||
post-review: true
|
||||
secrets:
|
||||
- openstack_helm_images_publish_credentials
|
||||
|
||||
- job:
|
||||
name: publish-openstack-helm-images-vbmc-suse_15
|
||||
parent: openstack-helm-images-vbmc-suse_15
|
||||
post-run: zuul.d/playbooks/publish.yml
|
||||
post-review: true
|
||||
secrets:
|
||||
- openstack_helm_images_publish_credentials
|
||||
|
|
Loading…
Reference in New Issue