[citemplates/alatiera/publish_beta] flatpak: add a publish_beta template job
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [citemplates/alatiera/publish_beta] flatpak: add a publish_beta template job
- Date: Fri, 20 Aug 2021 20:55:37 +0000 (UTC)
commit 1af461d4c6c9ee87ed53c53aeb83df4d393c89be
Author: Jordan Petridis <jordan centricular com>
Date: Fri Aug 20 23:44:30 2021 +0300
flatpak: add a publish_beta template job
This is not meant to be used as part of every CI pipeline, but
instead on special occasions like when tagging a beta release.
Ideally there are special requirments for pushing to flathub-beta
that you need to make sure you follow if you want to use this.
Whats needed is the following:
* Make sure you application depends on a runtime found in Flathub
or Flathub beta. You shouldn't use this with the Nightly runtime.
* Make sure your 'branch' in the Flatpak manifest is beta
* change only: and when: yaml keys to fit your needs
flatpak/flatpak_ci_initiative.yml | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
---
diff --git a/flatpak/flatpak_ci_initiative.yml b/flatpak/flatpak_ci_initiative.yml
index 2d75351..deb8e2d 100644
--- a/flatpak/flatpak_ci_initiative.yml
+++ b/flatpak/flatpak_ci_initiative.yml
@@ -78,3 +78,39 @@
- $CI_DEFAULT_BRANCH
variables:
- $REPO_TOKEN
+
+# This is not meant to be used as part of every CI pipeline, but
+# instead on special occasions like when tagging a beta release.
+#
+# Ideally there are special requirments for pushing to flathub-beta
+# that you need to make sure you follow if you want to use this.
+# Whats needed is the following:
+#
+# * Make sure you application depends on a runtime found in Flathub
+# or Flathub beta. You shouldn't use this with the Nightly runtime.
+# * Make sure your 'branch' in the Flatpak manifest is beta
+# * change only: and when: yaml keys to fit your needs
+.publish_beta:
+ image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/flat-manager-client'
+ stage: 'deploy'
+ timeout: '100m'
+ 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
+ when: 'manual'
+ variables:
+ FLAT_MANAGER_URL: 'https://hub.flathub.org'
+ FLATPAK_REPO: 'beta'
+ only:
+ refs:
+ - 'master'
+ - 'main'
+ - 'mainline'
+ - $CI_DEFAULT_BRANCH
+ variables:
+ - $FLATHUB_BETA_TOKEN
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]