[totem/alatiera/flathub-beta] wip ci: add job that publishes to flathub-beta




commit 83867dd61f795e11a6fe253a0690dd0b8c829ae0
Author: Jordan Petridis <jpetridis gnome org>
Date:   Fri Jun 26 20:47:12 2020 +0300

    wip ci: add job that publishes to flathub-beta

 .gitlab-ci.yml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ea1b3ea93..74d2e5259 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -68,3 +68,29 @@ nightly:
   needs: ['flatpak:master']
   dependencies: ['flatpak:master']
   extends: '.publish_nightly'
+
+flathub beta:
+  image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/flat-manager-client'
+  stage: 'deploy'
+  # FIXME: This needs to depend on a app build against a stable runtime if its
+  # going to be on flathub-beta
+  needs: ['flatpak:master']
+  dependencies: ['flatpak:master']
+  script:
+    - tar xf repo.tar
+    - export REPO_TOKEN=$FLATHUB_BETA_TOKEN
+    - flatpak build-update-repo --generate-static-deltas repo/
+    - BUILD_ID=$(flat-manager-client create ${FLAT_MANAGER_URL} ${FLATPAK_REPO})
+    - flat-manager-client push --commit --publish --wait ${BUILD_ID} repo/ || result=$?
+    - flat-manager-client purge ${BUILD_ID}
+    - exit $result
+  variables:
+    FLAT_MANAGER_URL: 'https://hub.flathub.org'
+    FLATPAK_REPO: 'beta'
+  only:
+    refs:
+      - 'master'
+      # FIXME: remove once done testing
+      - 'alatiera/flathub-beta'
+    variables:
+      - $FLATHUB_BETA_TOKEN


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