github.com/ssube/gitlab-ci-multi-runner@v1.2.1-0.20160607142738-b8d1285632e6/.gitlab-ci.yml (about)

     1  image: golang:1.6
     2  
     3  stages:
     4  - build
     5  - mirror
     6  
     7  before_script:
     8  - source ci/prepare
     9  
    10  Bleeding Edge:
    11    stage: build
    12    script:
    13    - source ci/build
    14    - '[[ -z "$AWS_SECRET_ACCESS_KEY" ]] || make s3-upload "S3_UPLOAD_PATH=$CI_BUILD_REF_NAME"'
    15    - '[[ "$CI_BUILD_REF_NAME" != "master" ]] || [[ -z "$PACKAGECLOUD_TOKEN" ]] || make packagecloud "PACKAGE_CLOUD=runner/unstable" DEB_PLATFORMS="debian/jessie ubuntu/trusty" RPM_PLATFORMS="el/7 fedora/23"'
    16    only:
    17    - branches
    18  
    19  Stable Release:
    20    stage: build
    21    script:
    22    - export RELEASE=true
    23    - source ci/build
    24    - '[[ -z "$AWS_SECRET_ACCESS_KEY" ]] || make s3-upload "S3_UPLOAD_PATH=$CI_BUILD_REF_NAME"'
    25    - '[[ -z "$AWS_SECRET_ACCESS_KEY" ]] || make s3-upload "S3_UPLOAD_PATH=latest"'
    26    - '[[ -z "$PACKAGECLOUD_TOKEN" ]] || make packagecloud'
    27    only:
    28    - tags@gitlab-org/gitlab-ci-multi-runner
    29  
    30  Mirror:
    31    stage: mirror
    32    script:
    33    - mkdir -p ~/.ssh
    34    - echo "$GITHUB_SSH_KEY" > ~/.ssh/id_rsa
    35    - ssh-keyscan -H github.com > ~/.ssh/known_hosts
    36    - chmod -R 0600 ~/.ssh/
    37    - git remote add github git@github.com:ayufan/gitlab-ci-multi-runner.git
    38    - git fetch github
    39    - git push github "$CI_BUILD_REF_NAME" -f
    40    only:
    41    - master@gitlab-org/gitlab-ci-multi-runner
    42    - tags@gitlab-org/gitlab-ci-multi-runner