[gnome-build-meta/abderrahim/flatpak-improvements: 28/28] .gitlab-ci.yml: don't push the freedesktop platform extensions to flathub



commit a7294f2ec8b79ac784e77d1f5c3941df35719e58
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Wed Jun 19 09:12:24 2019 +0100

    .gitlab-ci.yml: don't push the freedesktop platform extensions to flathub

 .gitlab-ci.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4323c00f..61386287 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -99,6 +99,16 @@ before_script:
     - ${BST} -o arch "${ARCH}" pull flatpak-runtimes.bst
 
     - ${BST} -o arch "${ARCH}" checkout --hardlinks flatpak-runtimes.bst repo/
+
+    - |
+      case $FLAT_MANAGER_SERVER in *flathub*)
+        for ref in $(ostree refs --repo repo/); do
+          case $ref in runtimes/org.freedesktop.Platform.*)
+            ostree refs --repo repo/ --delete $ref
+          esac
+        done
+        ostree prune --repo repo/ --refs-only
+      esac
     - flatpak build-update-repo --generate-static-deltas repo/
     - flat-manager/flat-manager-client push $(cat build.txt) repo/
   only:


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