[gnome-build-meta/abderrahim/bst2: 25/27] .gitlab-ci: switch to buildstream 2




commit f638c43209bb49965dff4a945b77c518ba68f805
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Mon Jul 4 19:35:26 2022 +0100

    .gitlab-ci: switch to buildstream 2

 .gitlab-ci.yml                     | 18 +++++++++---------
 .gitlab-ci/buildstream-nopush.conf |  3 +--
 .gitlab-ci/buildstream.conf        | 17 ++++++++++-------
 3 files changed, 20 insertions(+), 18 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7293194a8..88d2f81d9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -35,7 +35,7 @@ workflow:
     - if: '$CI_COMMIT_TAG'
 
 default:
-  image: "${DOCKER_REGISTRY}/bst16:${DOCKER_IMAGE_ID}"
+  image: "${DOCKER_REGISTRY}/bst2:${DOCKER_IMAGE_ID}"
   before_script:
   # Ensure the log directory exists
   - mkdir -p logs
@@ -82,7 +82,7 @@ default:
   allow_failure: true
   script:
   - ${BST_NO_PUSH} --max-jobs $(( $(nproc) / 4 )) -o arch "${ARCH}" build "${IMAGE}"
-  - ${BST} -o arch "${ARCH}" checkout --hardlinks "${IMAGE}" image
+  - ${BST} -o arch "${ARCH}" artifact checkout --hardlinks "${IMAGE}" --directory image
   artifacts:
     when: always
     paths:
@@ -107,11 +107,11 @@ default:
 
   - ostree init --repo repo/ --mode archive
 
-  - ${BST} -o arch "${ARCH}" pull vm/repo.bst vm/repo-devel.bst
+  - ${BST} -o arch "${ARCH}" artifact pull vm/repo.bst vm/repo-devel.bst
 
   - |
     for element in vm/repo.bst vm/repo-devel.bst; do
-        ${BST} -o arch "${ARCH}" checkout --hardlinks $element checkout-repo/
+        ${BST} -o arch "${ARCH}" artifact checkout --hardlinks $element --directory checkout-repo/
         ostree pull-local --repo=repo/ checkout-repo/
         rm -rf checkout-repo/
     done
@@ -303,8 +303,8 @@ s3-image:
     artifacts: false
   script:
   - ${BST_NO_PUSH} --max-jobs $(( $(nproc) / 4 )) -o arch "${ARCH}" build vm/image.bst iso/image.bst
-  - ${BST} -o arch "${ARCH}" checkout --hardlinks vm/image.bst image
-  - ${BST} -o arch "${ARCH}" checkout --hardlinks iso/image.bst iso
+  - ${BST} -o arch "${ARCH}" artifact checkout --hardlinks vm/image.bst --directory image
+  - ${BST} -o arch "${ARCH}" artifact checkout --hardlinks iso/image.bst --directory iso
 
   - |
     if [ -n "$CI_COMMIT_TAG" ]; then
@@ -385,10 +385,10 @@ cve_report:
   - job: 'build-x86_64'
     artifacts: false
   script:
-  - ${BST} pull flatpak/platform-manifest.bst flatpak/sdk-manifest.bst
+  - ${BST} artifact pull flatpak/platform-manifest.bst flatpak/sdk-manifest.bst
 
-  - ${BST} checkout flatpak/platform-manifest.bst platform-manifest/
-  - ${BST} checkout flatpak/sdk-manifest.bst sdk-manifest/
+  - ${BST} artifact checkout flatpak/platform-manifest.bst platform-manifest/
+  - ${BST} artifact checkout flatpak/sdk-manifest.bst sdk-manifest/
 
   - mkdir -p cve
   - cd cve
diff --git a/.gitlab-ci/buildstream-nopush.conf b/.gitlab-ci/buildstream-nopush.conf
index 06a5c2304..4c691db35 100644
--- a/.gitlab-ci/buildstream-nopush.conf
+++ b/.gitlab-ci/buildstream-nopush.conf
@@ -4,8 +4,7 @@
 logdir: ${CI_PROJECT_DIR}/logs
 
 # build area and artifacts
-builddir: ${CI_PROJECT_DIR}/build
-artifactdir: ${CI_PROJECT_DIR}/artifacts
+cachedir: ${CI_PROJECT_DIR}/cache
 
 # and sources in the dedicated volume
 sourcedir: /cache/buildstream/sources
diff --git a/.gitlab-ci/buildstream.conf b/.gitlab-ci/buildstream.conf
index 6ba029a44..e1ca353d4 100644
--- a/.gitlab-ci/buildstream.conf
+++ b/.gitlab-ci/buildstream.conf
@@ -4,8 +4,7 @@
 logdir: ${CI_PROJECT_DIR}/logs
 
 # build area and artifacts
-builddir: ${CI_PROJECT_DIR}/build
-artifactdir: ${CI_PROJECT_DIR}/artifacts
+cachedir: ${CI_PROJECT_DIR}/cache
 
 # and sources in the dedicated volume
 sourcedir: /cache/buildstream/sources
@@ -20,11 +19,15 @@ logging:
   error-lines: 80
 
 # configuration for pushing, client key and cert will be written by CI
-projects:
-  gnome:
-    artifacts:
-    - url: https://m1-xlarge-x86.gnome.org:11004
+artifacts:
+  servers:
+  - url: https://m1-xlarge-x86.gnome.org:11004
+    push: true
+    auth:
       client-key: client.key
       client-cert: client.crt
-      push: true
+
+# Use the gnome mirror by default
+projects:
+  gnome:
     default-mirror: gnome


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