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 b8328c9fa0
commit 7e207cfa7f
2 changed files with 13 additions and 3 deletions

View File

@ -119,7 +119,7 @@
run: tools/gate/playbooks/docker-image-build.yaml
nodeset: armada-single-node
secrets:
- armada_quay_creds
- airship_armada_quay_creds
vars:
publish: true
distro: ubuntu_bionic
@ -136,7 +136,7 @@
run: tools/gate/playbooks/docker-image-build.yaml
nodeset: armada-single-node
secrets:
- armada_quay_creds
- airship_armada_quay_creds
vars:
publish: true
distro: opensuse_15
@ -148,7 +148,7 @@
- latest
- secret:
name: armada_quay_creds
name: airship_armada_quay_creds
data:
username: !encrypted/pkcs1-oaep
- mQ5xMKaU6+ug5Zp+LK5hfwbFamnW9hK2QVQOA7ylcoTMh8yz66YcgDjGJjbT2c66NF8eg

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