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:
95 - support/doc/api/openapi.yaml
98 - apt-get -yqqq install openjdk-8-jre
99 - yarn install --pure-lockfile
100 - scripts/openapi-peertube-version.sh
101 - scripts/openapi-clients.sh
104 stage: docker-nightly
108 - yarn install --pure-lockfile --cache-folder .yarn-cache
110 - mkdir "${HOME}/.ssh"
111 - chmod 700 "${HOME}/.ssh"
112 - if [ ! -z ${DEPLOYEMENT_KNOWN_HOSTS+x} ]; then echo -e "${DEPLOYEMENT_KNOWN_HOSTS}" > ${HOME}/.ssh/known_hosts; fi
113 - eval `ssh-agent -s`
114 - if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then ssh-add <(echo "${DEPLOYEMENT_KEY}"); fi
115 - if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then scp ./peertube-nightly-* ${DEPLOYEMENT_USER}@${DEPLOYEMENT_HOST}:../../web/nightly; fi
118 stage: docker-nightly
121 name: gcr.io/kaniko-project/executor:debug
124 - echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$CI_REGISTRY_AUTH\",\"email\":\"$CI_REGISTRY_EMAIL\"}}}" > /kaniko/.docker/config.json
126 - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/support/docker/production/Dockerfile.buster --destination $DOCKER_IMAGE_NAME
128 build-docker-develop:
133 DOCKER_IMAGE_NAME: chocobozzz/peertube:develop-buster
140 DOCKER_IMAGE_NAME: chocobozzz/peertube:$CI_COMMIT_TAG-buster
147 DOCKER_IMAGE_NAME: chocobozzz/peertube:production-buster