aboutsummaryrefslogblamecommitdiffhomepage
path: root/.gitlab-ci.yml
blob: 66c6df76129f76e50a7b1b4e80232d5246629f9b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                                

       
           
                  
 





                     













                                           
 
              
                       










                                                                                                                                   
image: chocobozzz/peertube-ci:14

stages:
  - clients
  - docker-nightly

cache:
  key: yarn
  paths:
    - .yarn-cache
    - cached-fixtures

# build-openapi-clients:
#   stage: clients
#   only:
#     refs:
#       - master
#       - schedules
#     changes:
#       - support/doc/api/openapi.yaml
#   script:
#     - apt-get update -qq
#     - apt-get -yqqq install openjdk-8-jre
#     - yarn install --pure-lockfile
#     - scripts/openapi-peertube-version.sh
#     - scripts/openapi-clients.sh

build-nightly:
  stage: docker-nightly
  only:
    - schedules
  script:
    - yarn install --pure-lockfile --cache-folder .yarn-cache
    - npm run nightly
    - mkdir "${HOME}/.ssh"
    - chmod 700 "${HOME}/.ssh"
    - if [ ! -z ${DEPLOYEMENT_KNOWN_HOSTS+x} ]; then echo -e "${DEPLOYEMENT_KNOWN_HOSTS}" > ${HOME}/.ssh/known_hosts; fi
    - eval `ssh-agent -s`
    - if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then ssh-add <(echo "${DEPLOYEMENT_KEY}"); fi
    - if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then scp ./peertube-nightly-* ${DEPLOYEMENT_USER}@${DEPLOYEMENT_HOST}:../../web/nightly; fi