diff options
author | Jordan Petridis <jpetridis@gnome.org> | 2020-06-26 20:47:12 +0300 |
---|---|---|
committer | Jordan Petridis <jpetridis@gnome.org> | 2021-01-26 09:23:30 +0200 |
commit | 83867dd61f795e11a6fe253a0690dd0b8c829ae0 (patch) | |
tree | 7ddace9100e737e940a82d990a75197c27bd9d02 | |
parent | cc27e2ae4e497160347f0b148c947c10ff9a35fb (diff) | |
download | totem-alatiera/flathub-beta.tar.gz |
wip ci: add job that publishes to flathub-betaalatiera/flathub-beta
-rw-r--r-- | .gitlab-ci.yml | 26 |
1 files changed, 26 insertions, 0 deletions
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 |