From a18299df62e222417232e71993b124be666d79da Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 23 Aug 2023 09:32:34 -0700 Subject: [PATCH] buildhw: login to docker registry This is needed to get the new flatpak building setup working entirely. We already added this to buildvm's, but missed adding it to buildhw playbook at the same time. It shouldn't cause any problems for anything, it's just a podman login call so the flatpak koji plugin can push the completed container to the candidate registry. Signed-off-by: Kevin Fenzi --- playbooks/groups/buildhw.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/playbooks/groups/buildhw.yml b/playbooks/groups/buildhw.yml index 055c98ee58..8f41448a3f 100644 --- a/playbooks/groups/buildhw.yml +++ b/playbooks/groups/buildhw.yml @@ -92,6 +92,17 @@ host: "odcs{{ env_suffix }}.fedoraproject.org" kt_location: /etc/kojid/secrets/odcs_inner.keytab when: env == "staging" + # push built Flatpaks to candidate registry + - role: login-registry + candidate_registry: "candidate-registry.fedoraproject.org" + candidate_registry_osbs_username: "{{candidate_registry_osbs_prod_username}}" + candidate_registry_osbs_password: "{{candidate_registry_osbs_prod_password}}" + when: env == "production" + - role: login-registry + candidate_registry: "candidate-registry.stg.fedoraproject.org" + candidate_registry_osbs_username: "{{candidate_registry_osbs_stg_username}}" + candidate_registry_osbs_password: "{{candidate_registry_osbs_stg_password}}" + when: env == "staging" tasks: - import_tasks: "{{ tasks_path }}/motd.yml"