[gnome-build-meta/alatiera/async-image-builds: 1/2] ci: switch from dependencies key to needs




commit 1a591c7e20970a18e36d4ed59a310d649dca9c78
Author: Jordan Petridis <jordan centricular com>
Date:   Tue Sep 1 19:19:01 2020 +0300

    ci: switch from dependencies key to needs
    
    Needs is similar to dependency but more flexible,
    since it allows for different stages being able
    to run at the same time.

 .gitlab-ci.yml | 27 +++++++++++++++++++++------
 1 file changed, 21 insertions(+), 6 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9e1d91dc..d169a5d6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -49,7 +49,7 @@ default:
 
 .build-template:
   stage: build
-  dependencies: [track]
+  needs: ['track']
   interruptible: true
   script:
   - TARGETS=(core.bst flatpak-runtimes.bst flatpak-platform-extensions.bst platform-manifest.bst 
sdk-manifest.bst)
@@ -76,7 +76,7 @@ default:
 
 .manual-image-template:
   stage: deploy
-  dependencies: [track]
+  needs: ['track']
   when: manual
   allow_failure: true
   script:
@@ -97,7 +97,7 @@ default:
 .ostree-template:
   extends: .deploy-rules
   stage: deploy
-  dependencies: [track]
+  needs: ['track']
   script:
   - |
     export FLAT_MANAGER_SERVER=https://flatmgr-ostree.openshift.gnome.org/
@@ -171,7 +171,16 @@ generate-deploy-config:
   extends:
   - .x86_64
   - .deploy-rules
-  dependencies: [track]
+  needs:
+    - job: 'track'
+    - job: 'build-x86_64'
+      artifacts: false
+    - job: 'build-i386'
+      artifacts: false
+    - job: 'build-aarch64'
+      artifacts: false
+    - job: 'build-ppc64le'
+      artifacts: false
   stage: deploy-config
   script:
   - TRACK_JOB_ID=$(cat track-job.id)
@@ -264,7 +273,10 @@ raspberrypi-4-image:
 s3-image:
   extends: .x86_64
   stage: deploy
-  dependencies: [track]
+  needs:
+    - job: 'track'
+    - job: 'vm-image-x86_64'
+      artifacts: false
   script:
     - ${BST_NO_PUSH} --max-jobs $(( $(nproc) / 4 )) -o arch "${ARCH}" build vm/image.bst
     - ${BST} -o arch "${ARCH}" checkout --hardlinks vm/image.bst image
@@ -295,7 +307,10 @@ ostree-x86_64:
 cve_report:
   extends: .x86_64
   stage: reports
-  dependencies: [track]
+  needs:
+    - job: 'track'
+    - job: 'vm-image-x86_64'
+      artifacts: false
   script:
   - ${BST} pull platform-manifest.bst sdk-manifest.bst
 


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