Skip to content
Snippets Groups Projects
Select Git revision
  • 54e9c0b9e3c35d8f53179cb52ca0d62b3ae84703
  • master default protected
  • nrb/allow-wan-status
  • v1.7
  • v1.6
  • v1.6-rc2
  • v1.6-rc1
  • v1.6-alpha02
8 results

get-gluon-branch.sh

Blame
  • Forked from firmware / FFS Gluon site
    Source project has a limited visibility.
    get-gluon-branch.sh 516 B
    #!/bin/bash
    
    set -eu
    set -o pipefail
    
    # autoupdater
    # ====
    #
    # For commit builds, the autoupdater shall be off, i.e. GLUON_BRANCH unset.
    # For nightly, GLUON_BRANCH must be nightly.
    # For beta, GLUON_BRANCH must be beta.
    # For stable, GLUON_BRANCH must be stable.
    
    gluon_branch=""
    
    if [[ "${CI_PIPELINE_SOURCE:-}" = "schedule" ]]; then
        gluon_branch="nightly"
    fi
    
    case "${CI_COMMIT_TAG:-}" in
    beta/*)
        gluon_branch="beta"
    ;;
    stable/*)
        gluon_branch="stable"
    ;;
    esac
    
    # Else: Commit build
    echo $gluon_branch