diff options
| author | Michal Nasiadka <mnasiadka@gmail.com> | 2023-02-23 10:32:12 +0100 |
|---|---|---|
| committer | Michal Nasiadka <mnasiadka@gmail.com> | 2023-03-27 12:19:08 +0000 |
| commit | 58b265f46d5d0cc5d7b258bd19502443a863e946 (patch) | |
| tree | 5d3e56140e668b6bb935b087ac923be9cb7495bd /tests | |
| parent | d7d43bed84dff0c394a28730fef593bdfbb064f2 (diff) | |
| download | kolla-58b265f46d5d0cc5d7b258bd19502443a863e946.tar.gz kolla-58b265f46d5d0cc5d7b258bd19502443a863e946.zip | |
CI: Ensure quay repo is public on publish
Change-Id: Ib49e7c51be552a9aad0526841e7cffe588189371
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/playbooks/publish.yml | 9 |
1 files changed, 9 insertions, 0 deletions
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' |
