Enable koji-flatpak on production

Enable the plugin on production, not just on staging.

Signed-off-by: Owen W. Taylor <otaylor@fishsoup.net>
This commit is contained in:
Owen W. Taylor 2023-08-15 17:10:57 -04:00 committed by kevin
parent db450f7313
commit aaec95b064
5 changed files with 7 additions and 6 deletions

View file

@ -89,6 +89,11 @@
- role: btrfs
btrfs_balance_period: weekly
# push built Flatpaks to candidate registry
- role: login-registry
candidate_registry: "candidate-registry.fedoraproject.org"
candidate_registry_osbs_username: "{{candidate_registry_osbs_username}}"
candidate_registry_osbs_password: "{{candidate_registry_osbs_password}}"
when: env == "production"
- role: login-registry
candidate_registry: "candidate-registry.stg.fedoraproject.org"
candidate_registry_osbs_username: "{{candidate_registry_osbs_stg_username}}"

View file

@ -128,12 +128,11 @@
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"
candidate_registry: "candidate-registry{{ env_suffix }}.fedoraproject.org"
notify:
- restart kojid
tags:

View file

@ -121,9 +121,7 @@ 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

@ -210,7 +210,6 @@
package: name=koji-flatpak-hub state=present
tags:
- koji_hub
when: env == "staging"
#
# install keytabs

View file

@ -90,7 +90,7 @@ MissingPolicyOk = False
{% if env == "staging" %}
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
Plugins = osbuild koji-fedoramessaging runroot_hub hub_containerbuild tag2distrepo sidetag_hub save_failed_tree flatpak
{% endif %}
[policy]