[citemplates] Store flatpak repo as tarball



commit 7eeff8f309ca7c745466b332d3df12e7cdde1f12
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Wed Feb 19 18:34:24 2020 +0100

    Store flatpak repo as tarball
    
    For some reason GitLab throws 500 error when uploading directories.
    but only for unprivileged runners.

 flatpak/flatpak-ci-initiative-sdk-extensions.yml | 4 +++-
 flatpak/flatpak_ci_initiative.yml                | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/flatpak/flatpak-ci-initiative-sdk-extensions.yml 
b/flatpak/flatpak-ci-initiative-sdk-extensions.yml
index 5add19c..78fc4ec 100644
--- a/flatpak/flatpak-ci-initiative-sdk-extensions.yml
+++ b/flatpak/flatpak-ci-initiative-sdk-extensions.yml
@@ -26,13 +26,14 @@
 
     # Generate a Flatpak bundle
     - flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${APP_ID} ${BRANCH}
+    - tar cf repo.tar repo/
   artifacts:
     name: 'Flatpak artifacts'
     expose_as: 'Get Flatpak bundle here'
     when: 'always'
     paths:
       - "${BUNDLE}"
-      - 'repo/'
+      - 'repo.tar'
       - '_build/meson-logs/meson-log.txt'
       - '_build/meson-logs/testlog.txt'
     expire_in: 14 days
@@ -66,6 +67,7 @@
   image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/flat-manager-client'
   stage: '.post'
   script:
+    - tar xf repo.tar
     - 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}
diff --git a/flatpak/flatpak_ci_initiative.yml b/flatpak/flatpak_ci_initiative.yml
index 1961b25..2c48d77 100644
--- a/flatpak/flatpak_ci_initiative.yml
+++ b/flatpak/flatpak_ci_initiative.yml
@@ -70,13 +70,14 @@
 
     # Generate a Flatpak bundle
     - flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${APP_ID} ${BRANCH}
+    - tar cf repo.tar repo/
   artifacts:
     name: 'Flatpak artifacts'
     expose_as: 'Get Flatpak bundle here'
     when: 'always'
     paths:
       - "${BUNDLE}"
-      - 'repo/'
+      - 'repo.tar'
       - '_build/meson-logs/meson-log.txt'
       - '_build/meson-logs/testlog.txt'
     expire_in: 14 days
@@ -110,6 +111,7 @@
   image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/flat-manager-client'
   stage: '.post'
   script:
+    - tar xf repo.tar
     - 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}


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