[gnome-build-meta/abderrahim/ci-improvements: 79/84] .gitlab-ci.yml: use gitlab's new extends syntax instead of YAML anchors



commit 428a9cd30761589676c7bcff237afc5b48152fb7
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Wed Nov 28 16:53:05 2018 +0100

    .gitlab-ci.yml: use gitlab's new extends syntax instead of YAML anchors

 .gitlab-ci.yml | 29 ++++++++++++++---------------
 1 file changed, 14 insertions(+), 15 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bc2415b..403e833 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -86,7 +86,7 @@ before_script:
 
     fi
 
-.cache-template: &cache
+.cache-template:
   # Store all the downloaded sources in the distributed cache. This saves
   # us fetching them from the different repos and further afield
   # on every build.
@@ -95,11 +95,11 @@ before_script:
     paths:
       - "${XDG_CACHE_HOME}/buildstream/sources/"
 
-.build-template: &build
+.build-template:
+  extends: .cache-template
   stage: build
   script:
     - ${BST} -o arch "${ARCH}" build core.bst flatpak-runtimes.bst
-  <<: *cache
   # Store artifacts so we can inspect build failures
   artifacts:
     when: always
@@ -107,7 +107,8 @@ before_script:
       - logs
       - project.refs
 
-.flatpak-template: &flatpak
+.flatpak-template:
+  extends: .cache-template
   stage: flatpak
   script:
     - ${BST} -o arch "${ARCH}" build flatpak-runtimes.bst
@@ -129,7 +130,6 @@ before_script:
         ssh gbm-builder.gnome.org gbm-flatpak-scripts/import-commits -c "${CONFIG_FILE}" 
incoming/repo-${CI_JOB_ID}
       fi
 
-  <<: *cache
   # Store artifacts so we can inspect build failures
   artifacts:
     when: always
@@ -139,12 +139,11 @@ before_script:
 
 
 track:
+  extends: .cache-template
   image: buildstream/buildstream-fedora:master-123-abef70fe
   stage: track
   script:
     - ${BST} track --deps all core.bst flatpak-runtimes.bst
-
-  <<: *cache
   tags:
     - x86_64
     - gnome-build-meta
@@ -159,8 +158,8 @@ track:
 
 
 build-gnome-core-x86_64:
+  extends: .build-template
   image: buildstream/buildstream-fedora:master-123-abef70fe
-  <<: *build
   tags:
     - x86_64
     - gnome-build-meta
@@ -168,8 +167,8 @@ build-gnome-core-x86_64:
     ARCH: x86_64
 
 build-gnome-core-i386:
+  extends: .build-template
   image: buildstream/buildstream-fedora:master-123-abef70fe
-  <<: *build
   tags:
     - x86_64
     - gnome-build-meta
@@ -178,8 +177,8 @@ build-gnome-core-i386:
   allow_failure: true
 
 build-gnome-core-aarch64:
+  extends: .build-template
   image: buildstream/buildstream-fedora:aarch64-master-123-abef70fe
-  <<: *build
   tags:
     - aarch64
     - gnome-build-meta
@@ -188,8 +187,8 @@ build-gnome-core-aarch64:
   allow_failure: true
 
 build-gnome-core-arm:
+  extends: .build-template
   image: buildstream/buildstream-fedora:aarch64-master-123-abef70fe
-  <<: *build
   tags:
     - armhf
     - gnome-build-meta
@@ -198,8 +197,8 @@ build-gnome-core-arm:
   allow_failure: true
 
 flatpak-x86_64:
+  extends: .flatpak-template
   image: buildstream/buildstream-fedora:master-123-abef70fe
-  <<: *flatpak
   tags:
     - x86_64
     - gnome-build-meta
@@ -207,8 +206,8 @@ flatpak-x86_64:
     ARCH: x86_64
 
 flatpak-i386:
+  extends: .flatpak-template
   image: buildstream/buildstream-fedora:master-123-abef70fe
-  <<: *flatpak
   tags:
     - x86_64
     - gnome-build-meta
@@ -216,8 +215,8 @@ flatpak-i386:
     ARCH: i686
 
 flatpak-aarch64:
+  extends: .flatpak-template
   image: buildstream/buildstream-fedora:aarch64-master-123-abef70fe
-  <<: *flatpak
   tags:
     - aarch64
     - gnome-build-meta
@@ -225,8 +224,8 @@ flatpak-aarch64:
     ARCH: aarch64
 
 flatpak-arm:
+  extends: .flatpak-template
   image: buildstream/buildstream-fedora:aarch64-master-123-abef70fe
-  <<: *flatpak
   tags:
     - armhf
     - gnome-build-meta


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