From 58b265f46d5d0cc5d7b258bd19502443a863e946 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Thu, 23 Feb 2023 10:32:12 +0100 Subject: CI: Ensure quay repo is public on publish Change-Id: Ib49e7c51be552a9aad0526841e7cffe588189371 --- tests/playbooks/publish.yml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests') diff --git a/tests/playbooks/publish.yml b/tests/playbooks/publish.yml index 9a5569849..3fc52cd19 100644 --- a/tests/playbooks/publish.yml +++ b/tests/playbooks/publish.yml @@ -45,4 +45,13 @@ register: push_status until: push_status.failed is false retries: 5 + + - name: Ensure repository visibility is public + uri: + url: "https://quay.io/api/v1/repository/{{ item.RepoTags.0 }}/changevisibility" + method: POST + headers: + Authorization: "Bearer {{ kolla_quay_io_api.token | trim }}" + body: '{"visibility": "public"}' + body_format: json when: kolla_registry == 'quay.io' -- cgit v1.2.3