Use separate publish jobs in periodic pipeline
The secrets can not be inherited. Change-Id: Ie0f99f470a419c57865eb8b0a14e465ae228c799
This commit is contained in:
parent
628af2f8b0
commit
e6036f52ed
94
.zuul.yaml
94
.zuul.yaml
@ -39,36 +39,12 @@
|
|||||||
- kolla-build-oraclelinux-source
|
- kolla-build-oraclelinux-source
|
||||||
periodic:
|
periodic:
|
||||||
jobs:
|
jobs:
|
||||||
- kolla-build-centos-source:
|
- kolla-publish-centos-source
|
||||||
vars:
|
- kolla-publish-centos-binary
|
||||||
publisher: true
|
- kolla-publish-ubuntu-source
|
||||||
secrets:
|
- kolla-publish-ubuntu-binary
|
||||||
- kolla_dockerhub_creds
|
- kolla-publish-oraclelinux-source
|
||||||
- kolla-build-centos-binary:
|
- kolla-publish-oraclelinux-binary
|
||||||
vars:
|
|
||||||
publisher: true
|
|
||||||
secrets:
|
|
||||||
- kolla_dockerhub_creds
|
|
||||||
- kolla-build-ubuntu-source:
|
|
||||||
vars:
|
|
||||||
publisher: true
|
|
||||||
secrets:
|
|
||||||
- kolla_dockerhub_creds
|
|
||||||
- kolla-build-ubuntu-binary:
|
|
||||||
vars:
|
|
||||||
publisher: true
|
|
||||||
secrets:
|
|
||||||
- kolla_dockerhub_creds
|
|
||||||
- kolla-build-oraclelinux-source:
|
|
||||||
vars:
|
|
||||||
publisher: true
|
|
||||||
secrets:
|
|
||||||
- kolla_dockerhub_creds
|
|
||||||
- kolla-build-oraclelinux-binary:
|
|
||||||
vars:
|
|
||||||
publisher: true
|
|
||||||
secrets:
|
|
||||||
- kolla_dockerhub_creds
|
|
||||||
|
|
||||||
- secret:
|
- secret:
|
||||||
name: kolla_dockerhub_creds
|
name: kolla_dockerhub_creds
|
||||||
@ -114,9 +90,7 @@
|
|||||||
timeout: 10200
|
timeout: 10200
|
||||||
pre-run: tests/playbooks/pre.yml
|
pre-run: tests/playbooks/pre.yml
|
||||||
run: tests/playbooks/run.yml
|
run: tests/playbooks/run.yml
|
||||||
post-run:
|
post-run: tests/playbooks/post.yml
|
||||||
- tests/playbooks/post.yml
|
|
||||||
- tests/playbooks/publish.yml
|
|
||||||
attempts: 1
|
attempts: 1
|
||||||
required-projects:
|
required-projects:
|
||||||
- openstack/kolla-ansible
|
- openstack/kolla-ansible
|
||||||
@ -137,6 +111,15 @@
|
|||||||
base_distro: centos
|
base_distro: centos
|
||||||
install_type: binary
|
install_type: binary
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: kolla-publish-centos-binary
|
||||||
|
parent: kolla-build-centos-binary
|
||||||
|
post-run: tests/playbooks/publish.yml
|
||||||
|
vars:
|
||||||
|
publisher: true
|
||||||
|
secrets:
|
||||||
|
- kolla_dockerhub_creds
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: kolla-build-centos-source
|
name: kolla-build-centos-source
|
||||||
parent: kolla-base
|
parent: kolla-base
|
||||||
@ -146,6 +129,15 @@
|
|||||||
base_distro: centos
|
base_distro: centos
|
||||||
install_type: source
|
install_type: source
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: kolla-publish-centos-source
|
||||||
|
parent: kolla-build-centos-source
|
||||||
|
post-run: tests/playbooks/publish.yml
|
||||||
|
vars:
|
||||||
|
publisher: true
|
||||||
|
secrets:
|
||||||
|
- kolla_dockerhub_creds
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: kolla-build-ubuntu-binary
|
name: kolla-build-ubuntu-binary
|
||||||
parent: kolla-base
|
parent: kolla-base
|
||||||
@ -156,6 +148,15 @@
|
|||||||
base_distro: ubuntu
|
base_distro: ubuntu
|
||||||
install_type: binary
|
install_type: binary
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: kolla-publish-ubuntu-binary
|
||||||
|
parent: kolla-build-ubuntu-binary
|
||||||
|
post-run: tests/playbooks/publish.yml
|
||||||
|
vars:
|
||||||
|
publisher: true
|
||||||
|
secrets:
|
||||||
|
- kolla_dockerhub_creds
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: kolla-build-ubuntu-source
|
name: kolla-build-ubuntu-source
|
||||||
parent: kolla-base
|
parent: kolla-base
|
||||||
@ -165,6 +166,15 @@
|
|||||||
base_distro: ubuntu
|
base_distro: ubuntu
|
||||||
install_type: source
|
install_type: source
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: kolla-publish-ubuntu-source
|
||||||
|
parent: kolla-build-ubuntu-source
|
||||||
|
post-run: tests/playbooks/publish.yml
|
||||||
|
vars:
|
||||||
|
publisher: true
|
||||||
|
secrets:
|
||||||
|
- kolla_dockerhub_creds
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: kolla-build-oraclelinux-binary
|
name: kolla-build-oraclelinux-binary
|
||||||
parent: kolla-base
|
parent: kolla-base
|
||||||
@ -175,6 +185,15 @@
|
|||||||
base_distro: oraclelinux
|
base_distro: oraclelinux
|
||||||
install_type: binary
|
install_type: binary
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: kolla-publish-oraclelinux-binary
|
||||||
|
parent: kolla-build-oraclelinux-binary
|
||||||
|
post-run: tests/playbooks/publish.yml
|
||||||
|
vars:
|
||||||
|
publisher: true
|
||||||
|
secrets:
|
||||||
|
- kolla_dockerhub_creds
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: kolla-build-oraclelinux-source
|
name: kolla-build-oraclelinux-source
|
||||||
parent: kolla-base
|
parent: kolla-base
|
||||||
@ -183,3 +202,12 @@
|
|||||||
action: build
|
action: build
|
||||||
base_distro: oraclelinux
|
base_distro: oraclelinux
|
||||||
install_type: source
|
install_type: source
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: kolla-publish-oraclelinux-source
|
||||||
|
parent: kolla-build-oraclelinux-source
|
||||||
|
post-run: tests/playbooks/publish.yml
|
||||||
|
vars:
|
||||||
|
publisher: true
|
||||||
|
secrets:
|
||||||
|
- kolla_dockerhub_creds
|
||||||
|
@ -4,9 +4,5 @@
|
|||||||
- name: Login to Dockerhub
|
- name: Login to Dockerhub
|
||||||
command: "docker login -u {{ kolla_dockerhub_creds.user }} -p {{ kolla_dockerhub_creds.password }}"
|
command: "docker login -u {{ kolla_dockerhub_creds.user }} -p {{ kolla_dockerhub_creds.password }}"
|
||||||
no_log: true
|
no_log: true
|
||||||
when:
|
|
||||||
- publisher
|
|
||||||
|
|
||||||
- shell: "for img in $(docker images --format '{% raw %}{{ .Repository }}:{{ .Tag }}{% endraw %}' | grep kolla ); do docker push $img; done"
|
- shell: "for img in $(docker images --format '{% raw %}{{ .Repository }}:{{ .Tag }}{% endraw %}' | grep kolla ); do docker push $img; done"
|
||||||
when:
|
|
||||||
- publisher
|
|
||||||
|
Loading…
Reference in New Issue
Block a user