From 496aa0bd64ce75cf05c5b111b92fe90d9c8fe12a Mon Sep 17 00:00:00 2001 From: nrb <freifunk@nicoboehr.de> Date: Sat, 11 Jan 2020 23:52:59 +0100 Subject: [PATCH] CI: have make update as an extra pipeline stage This should allow later build jobs to share the downloaded artifact, altough initially lowering the parallel efficiency, as downloading occurs only on one runner at the same time. But let's hope that slowdown is outhweighted by not all runners having to download the same stuff. --- .gitlab-ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ef4356f13..c29a23272 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,6 +5,7 @@ variables: DOCKER_DRIVER: overlay2 stages: + - update - build - package @@ -86,10 +87,14 @@ target:x86-64: variables: GLUON_TARGET: x86-64 +update: + stage: update + script: + - make -C gluon update GLUON_SITEDIR="$CI_PROJECT_DIR" + package: stage: package script: - - make -C gluon update GLUON_SITEDIR="$CI_PROJECT_DIR" - for branch in "stable" "beta" "nightly" "experimental"; do make -C gluon manifest GLUON_BRANCH="$branch" GLUON_SITEDIR="$CI_PROJECT_DIR" V=1; done - if [ -n "$GLUON_SIGN_KEY" ]; then cd gluon && for branch in "nightly" "experimental"; do ./contrib/sign.sh <(echo "$GLUON_SIGN_KEY") "output/images/sysupgrade/$branch.manifest"; done; fi artifacts: -- GitLab