Fix: quay secrets name change

This patch fixes credentials names and adds a check that verifies if
containers repository credentials are correct by logging-in and logging-out
of repo on check and gate jobs run.

Change-Id: I13d7f9841f93f1514ce35711958460b421c90db4
This commit is contained in:
Roman Gorshunov 2019-05-15 19:30:56 +02:00
parent 1110c23cd1
commit 3aa9cbd617
1 changed files with 10 additions and 0 deletions

View File

@ -89,6 +89,16 @@
- name: Make images
when: not publish
block:
# Just verify if we can login to the containers repository
- docker_login:
username: "{{ airship_armada_quay_creds.username }}"
password: "{{ airship_armada_quay_creds.password }}"
registry_url: "https://quay.io/api/v1/"
- docker_login:
state: absent
registry_url: "https://quay.io/api/v1/"
- make:
chdir: "{{ zuul.project.src_dir }}"
target: images