1 image: chocobozzz/peertube-ci:10
10 # - 'sed -i -z "s/database:\n hostname: ''localhost''/database:\n hostname: ''postgres''/" config/test.yaml'
11 # - 'sed -i -z "s/redis:\n hostname: ''localhost''/redis:\n hostname: ''redis''/" config/test.yaml'
12 # - if [[ $CI_JOB_STAGE == "test" ]]; then psql -c "create user peertube with password 'peertube';"; fi
13 # - NOCLIENT=1 yarn install --pure-lockfile --cache-folder .yarn-cache
24 #.build-and-lint: &build-and-lint
25 # stage: build-and-lint
32 # - name: postgres:9.6
34 # - name: redis:latest
56 # - npm run build:server
61 # - yarn install --pure-lockfile --cache-folder .yarn-cache
62 # - npm run ci -- "lint"
70 # - yarn install --pure-lockfile --cache-folder .yarn-cache
71 # - npm run ci -- "misc"
78 # - npm run ci -- "cli"
86 # - NODE_PENDING_JOB_WAIT=1000 npm run ci -- api-$CI_NODE_INDEX
88 build-openapi-clients:
96 - support/doc/api/openapi.yaml
99 - apt-get -yqqq install openjdk-8-jre
100 - yarn install --pure-lockfile
101 - scripts/openapi-peertube-version.sh
102 - scripts/openapi-clients.sh
105 stage: docker-nightly
109 - yarn install --pure-lockfile --cache-folder .yarn-cache
111 - mkdir "${HOME}/.ssh"
112 - chmod 700 "${HOME}/.ssh"
113 - if [ ! -z ${DEPLOYEMENT_KNOWN_HOSTS+x} ]; then echo -e "${DEPLOYEMENT_KNOWN_HOSTS}" > ${HOME}/.ssh/known_hosts; fi
114 - eval `ssh-agent -s`
115 - if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then ssh-add <(echo "${DEPLOYEMENT_KEY}"); fi
116 - if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then scp ./peertube-nightly-* ${DEPLOYEMENT_USER}@${DEPLOYEMENT_HOST}:../../web/nightly; fi
119 stage: docker-nightly
122 name: gcr.io/kaniko-project/executor:debug
125 - echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$CI_REGISTRY_AUTH\",\"email\":\"$CI_REGISTRY_EMAIL\"}}}" > /kaniko/.docker/config.json
127 - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/support/docker/production/Dockerfile.buster --destination $DOCKER_IMAGE_NAME
129 build-docker-develop:
134 DOCKER_IMAGE_NAME: chocobozzz/peertube:develop-buster
141 DOCKER_IMAGE_NAME: chocobozzz/peertube:$CI_COMMIT_TAG-buster
148 DOCKER_IMAGE_NAME: chocobozzz/peertube:production-buster