[gnome-build-meta/tristan/fdsdk-master-again: 25/26] Revert "Revert ".gitlab-ci.yml: don't push the freedesktop platform extensions to flathub""



commit d4098434a213d5fccffe206b1c4ba9e1106fce1e
Author: Tristan Van Berkom <tristan vanberkom codethink co uk>
Date:   Tue Jun 25 19:25:20 2019 +0900

    Revert "Revert ".gitlab-ci.yml: don't push the freedesktop platform extensions to flathub""
    
    This reverts commit 1c7637fa27db861c8e9c0ae9ba46de0e389e03f7.

 .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]