
https://review.opendev.org/q/topic:ooo_c7_teardown is dropping the c7 based jobs. It also removes job definitions. The last run https://zuul.openstack.org/builds?job_name=tripleo-ci-centos-7-undercloud-containers was from 1 year ago. We are removing these jobs as a part of ooo_c7_teardown[1]. Added py_modules=[] in setup.py to disable auto discovery and fix linters job. It also fixes tox molecule issues with no-changed-when warning errors. [1]. https://review.opendev.org/q/topic:ooo_c7_teardown Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com> Change-Id: I94d290321213ae0e097a9ac7d472878940edbafa
31 lines
989 B
YAML
31 lines
989 B
YAML
---
|
|
# TODO(gcerami): The login process does not work with dockerhub, as dockerhub requires an
|
|
# auth API call to pass an email address (aven a fake one)
|
|
|
|
- name: Fail if credentials are not defined or empty
|
|
fail:
|
|
msg: "Registry credentials are missing"
|
|
when: container_registry_logins|default({}) == {}
|
|
|
|
- import_tasks: install-engine.yml
|
|
|
|
- name: Try docker command line for authentication
|
|
block:
|
|
- name: Login via docker command
|
|
become: true
|
|
command: >
|
|
docker login "{{ item.key }}"
|
|
--username "{{ lookup('dict', item.value).key }}"
|
|
--password "{{ lookup('dict', item.value).value }}"
|
|
loop: "{{ query('dict', container_registry_logins | default({})) }}"
|
|
register: registry_login_docker
|
|
changed_when: false
|
|
rescue:
|
|
- name: Failed login
|
|
debug:
|
|
msg: "Warning: login failed for some credentials while using docker login"
|
|
|
|
- import_tasks: cleanup-engine.yml
|
|
when: container_registry_cleanup_client
|
|
|