[PATCH] bodhi-pungi: specify ostree ref in config and updates for f29

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Now that we can specify the ostree_ref in the config we can stop
having to choose various fedora-atomic-host-updates-{stable,testing}.json
files.

For silverblue we are also changing the ref to silverblue away from
workstation so we'll only specify ostree_ref if f29+ and let the json
files still specify "workstation" for f27 and f28.
---
 roles/bodhi2/backend/templates/pungi.rpm.conf.j2 | 24 ++++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)

diff --git a/roles/bodhi2/backend/templates/pungi.rpm.conf.j2 b/roles/bodhi2/backend/templates/pungi.rpm.conf.j2
index 4c436dbb1..a523674e1 100644
--- a/roles/bodhi2/backend/templates/pungi.rpm.conf.j2
+++ b/roles/bodhi2/backend/templates/pungi.rpm.conf.j2
@@ -121,7 +121,7 @@ ostree = {
                 "version": "!VERSION_FROM_VERSION_DATE_RESPIN",
             [% endif %]
             "force_new_commit": True
-            "treefile": "fedora-atomic-host-updates-[[ request.name ]].json",
+            "treefile": "fedora-atomic-host.json",
             "config_url": "https://pagure.io/fedora-atomic.git";,
             "config_branch": "f[[ release.version ]]",
             "repo": [
@@ -138,6 +138,11 @@ ostree = {
                 [% endif %]
             ]
             "ostree_repo": "/mnt/koji/compose/atomic/repo",
+            [% if request.name == 'stable' %]
+                "ostree_ref": "fedora/[[ release.version_int ]]/${basearch}/updates/atomic-host",
+            [% else %]
+                "ostree_ref": "fedora/[[ release.version_int ]]/${basearch}/testing/atomic-host",
+            [% endif %]
             "tag_ref": False,
             "arches": ["x86_64",
                        [% if release.version_int >= 27 %]
@@ -154,11 +159,13 @@ ostree = {
             [% if release.version_int >= 28 %]
                 "version": "!VERSION_FROM_VERSION_DATE_RESPIN",
             [% endif %]
-            [% if release.version_int >= 28 %]
+            [% if release.version_int >= 29 %]
+                "treefile": "fedora-silverblue.json",
+            [% elif release.version_int == 28 %]
                 "treefile": "fedora-atomic-workstation-updates-[[ request.name ]].json",
-        [% else %]
+            [% else %]
                 "treefile": "fedora-ostree-workstation-updates-[[ request.name ]].json",
-        [% endif %]
+            [% endif %]
             "config_url": "https://pagure.io/workstation-ostree-config.git";,
             "config_branch": "f[[ release.version ]]",
             "repo": [
@@ -175,6 +182,15 @@ ostree = {
                 [% endif %]
             ]
             "ostree_repo": "/mnt/koji/compose/atomic/repo",
+            # For f29+ we are changing the ref to silverblue. For f28/f27 let the files
+            # still specify the workstation ref.
+            [% if release.version_int >= 29 %]
+                [% if request.name == 'stable' %]
+                    "ostree_ref": "fedora/[[ release.version_int ]]/${basearch}/updates/silverblue",
+                [% else %]
+                    "ostree_ref": "fedora/[[ release.version_int ]]/${basearch}/testing/silverblue",
+                [% endif %]
+            [% endif %]
             "tag_ref": False,
             "arches": ["x86_64"],
             "failable": ["x86_64"]
-- 
2.14.4
_______________________________________________
infrastructure mailing list -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/infrastructure@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux