.gitlab-ci.yml 1.03 KB
Newer Older
Ralf's avatar
Ralf committed
1
image: tobitheo/gluon-build-docker:latest
Tobias Theobald's avatar
Tobias Theobald committed
2

3 4
trigger:
  script:
Ralf's avatar
Ralf committed
5
    # Determine some global variables and then trigger the repo with the private keys for the actual build process
Ralf's avatar
Ralf committed
6
    - source version.sh "$CI_BUILD_REF_NAME"
Ralf's avatar
Ralf committed
7
    - git tag "$RELEASE_TAG" "$CI_BUILD_REF" # just make sure the version does not exist already
Ralf's avatar
Ralf committed
8
    - echo "Building Gluon ${GLUON_UPSTREAM_TAG} and commit ${CI_BUILD_REF} for FFSAAR version ${RELEASE_VERSION} (tag:"" ${RELEASE_TAG}) from the ${CI_BUILD_REF_NAME} branch"
9
    - export STAGING_DIR="${RELEASE_VERSION}.$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)"
Ralf's avatar
Ralf committed
10
    - curl --fail -X POST -F "token=$CI_SECRET" -F "ref=master" -F "variables[GLUON_UPSTREAM_TAG]=$GLUON_UPSTREAM_TAG" -F "variables[RELEASE_REF]=$CI_BUILD_REF" -F "variables[RELEASE_BRANCH]=$CI_BUILD_REF_NAME" -F "variables[RELEASE_VERSION]=$RELEASE_VERSION" -F "variables[RELEASE_TAG]=$RELEASE_TAG" -F "variables[STAGING_DIR]=$STAGING_DIR" https://git.hacksaar.de/api/v4/projects/30/trigger/pipeline
11 12 13 14
  only:
    - experimental
    - beta
    - stable