Skip to content
Snippets Groups Projects
Commit 6e95ca40 authored by nrbffs's avatar nrbffs
Browse files

CI: take GLUON_BRANCH from build environment if specified

parent 450adcf4
Branches
Tags
1 merge request!1CI: take GLUON_BRANCH from build environment if specified
Pipeline #25 passed
...@@ -6,25 +6,23 @@ set -o pipefail ...@@ -6,25 +6,23 @@ set -o pipefail
# autoupdater # autoupdater
# ==== # ====
# #
# For commit builds, the autoupdater shall be off, i.e. GLUON_BRANCH unset. # This script prints the name of the autoupdater branch depending on the build
# For nightly, GLUON_BRANCH must be nightly. # configuration. Its output is suitable for use as the GLUON_BRANCH build
# For beta, GLUON_BRANCH must be beta. # variable of gluon.
# For stable, GLUON_BRANCH must be stable. #
# The idea is to take whatever comes in the GLUON_BRANCH build variable,
gluon_branch="" # except when this value is not one of the well-known branch names; then fall
# back to 'nightly'.
if [[ "${CI_PIPELINE_SOURCE:-}" = "schedule" ]]; then default_gluon_branch_name="nightly"
gluon_branch="nightly"
fi
case "${CI_COMMIT_TAG:-}" in case "${GLUON_BRANCH:-}" in
beta/*) "nightly" | "beta" | "stable")
gluon_branch="beta" gluon_branch="$GLUON_BRANCH"
;; ;;
stable/*) *):
gluon_branch="stable" gluon_branch="$default_gluon_branch_name"
;; ;;
esac esac
# Else: Commit build
echo $gluon_branch echo $gluon_branch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment