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:
parent
e264bc8cae
commit
f3c44a3ca3
6 changed files with 34 additions and 1 deletions
|
@ -88,6 +88,12 @@
|
||||||
when: env == "staging"
|
when: env == "staging"
|
||||||
- role: btrfs
|
- role: btrfs
|
||||||
btrfs_balance_period: weekly
|
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:
|
tasks:
|
||||||
- import_tasks: "{{ tasks_path }}/motd.yml"
|
- import_tasks: "{{ tasks_path }}/motd.yml"
|
||||||
|
|
|
@ -124,6 +124,21 @@
|
||||||
- koji_builder
|
- koji_builder
|
||||||
- rpmautospec
|
- 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)
|
- name: Install arm UEFI firmware package (aarch64 only)
|
||||||
package: name=edk2-arm state=present
|
package: name=edk2-arm state=present
|
||||||
tags:
|
tags:
|
||||||
|
|
2
roles/koji_builder/templates/flatpak.conf
Normal file
2
roles/koji_builder/templates/flatpak.conf
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[push]
|
||||||
|
registry={{candidate_registry}}
|
|
@ -121,5 +121,9 @@ keytab = /etc/kojid/kojid.keytab
|
||||||
|
|
||||||
{{ plugins.append("scmpolicy") }}
|
{{ plugins.append("scmpolicy") }}
|
||||||
|
|
||||||
|
{% if env == 'staging' %}
|
||||||
|
{{ plugins.append("flatpak") }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
; Config for the runroot plugin lives in /etc/kojid/runroot.conf, if enabled
|
; Config for the runroot plugin lives in /etc/kojid/runroot.conf, if enabled
|
||||||
plugins = {{ plugins | join(" ") }}
|
plugins = {{ plugins | join(" ") }}
|
||||||
|
|
|
@ -206,6 +206,12 @@
|
||||||
- koji_hub
|
- koji_hub
|
||||||
- rpmautospec
|
- rpmautospec
|
||||||
|
|
||||||
|
- name: install Flatpak hub plugin
|
||||||
|
package: name=koji-flatpak-hub state=present
|
||||||
|
tags:
|
||||||
|
- koji_hub
|
||||||
|
when: env == "staging"
|
||||||
|
|
||||||
#
|
#
|
||||||
# install keytabs
|
# install keytabs
|
||||||
#
|
#
|
||||||
|
|
|
@ -88,7 +88,7 @@ MissingPolicyOk = False
|
||||||
#Plugins = koji-disable-builds-plugin
|
#Plugins = koji-disable-builds-plugin
|
||||||
#Plugins = darkserver-plugin
|
#Plugins = darkserver-plugin
|
||||||
{% if env == "staging" %}
|
{% 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 %}
|
{% else %}
|
||||||
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
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue