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-16 13:46:09 +02:00
parent 1110c23cd1
commit 1253c8ca68
2 changed files with 14 additions and 0 deletions

View File

@ -67,6 +67,8 @@
timeout: 1800
run: tools/gate/playbooks/docker-image-build.yaml
nodeset: armada-single-node
secrets:
- airship_armada_quay_creds
vars:
publish: false
distro: ubuntu_bionic
@ -79,6 +81,8 @@
timeout: 1800
run: tools/gate/playbooks/docker-image-build.yaml
nodeset: armada-single-node
secrets:
- airship_armada_quay_creds
vars:
publish: false
distro: opensuse_15

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