Enable koji-flatpak plugin for staging

Just for staging for now:
 - enable 'podman-login' role for the buildvm group, so built Flatpaks
   can be pushed to the skopeo registry.
 - add the koji-flatpak hub plugin to koji_hub role
 - add the koji-flatpak builder plugin to the koji_builder role
   and configure it.

Signed-off-by: Owen W. Taylor <otaylor@fishsoup.net>
This commit is contained in:
Owen W. Taylor 2023-08-11 00:41:49 -04:00 committed by kevin
parent e264bc8cae
commit f3c44a3ca3
6 changed files with 34 additions and 1 deletions

View file

@ -88,6 +88,12 @@
when: env == "staging"
- role: btrfs
btrfs_balance_period: weekly
# push built Flatpaks to candidate registry
- 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"

View file

@ -124,6 +124,21 @@
- koji_builder
- rpmautospec
- name: install Flatpak builder plugin
package: name=koji-flatpak-builder state=present
tags:
- koji_builder
when: env == "staging"
- name: configure flatpak-builder plugin
template: src=flatpak.conf dest=/etc/kojid/plugins/flatpak.conf
vars:
candidate_registry: "candidate-registry.stg.fedoraproject.org"
notify:
- restart kojid
tags:
- koji_builder
- name: Install arm UEFI firmware package (aarch64 only)
package: name=edk2-arm state=present
tags:

View file

@ -0,0 +1,2 @@
[push]
registry={{candidate_registry}}

View file

@ -121,5 +121,9 @@ keytab = /etc/kojid/kojid.keytab
{{ plugins.append("scmpolicy") }}
{% if env == 'staging' %}
{{ plugins.append("flatpak") }}
{% endif %}
; Config for the runroot plugin lives in /etc/kojid/runroot.conf, if enabled
plugins = {{ plugins | join(" ") }}

View file

@ -206,6 +206,12 @@
- koji_hub
- rpmautospec
- name: install Flatpak hub plugin
package: name=koji-flatpak-hub state=present
tags:
- koji_hub
when: env == "staging"
#
# install keytabs
#

View file

@ -88,7 +88,7 @@ MissingPolicyOk = False
#Plugins = koji-disable-builds-plugin
#Plugins = darkserver-plugin
{% if env == "staging" %}
Plugins = osbuild koji-fedoramessaging runroot_hub hub_containerbuild tag2distrepo sidetag_hub save_failed_tree
Plugins = osbuild koji-fedoramessaging runroot_hub hub_containerbuild tag2distrepo sidetag_hub save_failed_tree flatpak
{% else %}
Plugins = osbuild koji-fedoramessaging runroot_hub hub_containerbuild tag2distrepo sidetag_hub save_failed_tree
{% endif %}