[pitivi/sdk] x




commit 27156c9ef16a0fc3feda6a92ca05d6b763a2b8b3
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Fri Dec 18 01:47:39 2020 +0100

    x

 .gitlab-ci.yml | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8cb1c6240..5c50f0b8b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,6 +17,10 @@ pitivi:master:
     - pitivi
     - privileged
   image: registry.gitlab.gnome.org/infrastructure/docker/buildah:latest
+  variables:
+    STORAGE_DRIVER: vfs
+    BUILDAH_FORMAT: docker
+    BUILDAH_ISOLATION: chroot
   script:
     # Debug
     # https://docs.gitlab.com/ee/ci/variables/predefined_variables.html
@@ -25,13 +29,17 @@ pitivi:master:
     - pwd
     - ls -al
     - ls -al /root
+    - cat /etc/containers/storage.conf
 
+    # Error during unshare(CLONE_NEWUSER): Operation not permitted
+    # User namespaces are not enabled in /proc/sys/kernel/unprivileged_userns_clone.
+    - echo 1 > /proc/sys/kernel/unprivileged_userns_clone
     - buildah login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
 
     # Create an image with the flatpak-builder cache populated.
     # This allows rebuilding the sandbox quickly when running the tests.
     - export DOCKERIMAGE="registry.gitlab.gnome.org/gnome/pitivi:master-sdk_3.38"
-    - buildah bud --isolation=chroot --format=docker --build-arg CI_PROJECT_URL=${CI_PROJECT_URL} 
--build-arg CI_COMMIT_REF_NAME=${CI_COMMIT_REF_NAME} --build-arg 
FLATPAK_BUILDER_CACHE=${FLATPAK_BUILDER_CACHE} -f ./runner -t ${DOCKERIMAGE} ${DIR}
+    - buildah bud --build-arg CI_PROJECT_URL=${CI_PROJECT_URL} --build-arg 
CI_COMMIT_REF_NAME=${CI_COMMIT_REF_NAME} --build-arg FLATPAK_BUILDER_CACHE=${FLATPAK_BUILDER_CACHE} -f 
./runner -t ${DOCKERIMAGE} ${DIR}
     - buildah push ${DOCKERIMAGE}
   only:
     - triggers


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