1 image: chocobozzz/peertube-ci:10
11 # - 'sed -i -z "s/database:\n hostname: ''localhost''/database:\n hostname: ''postgres''/" config/test.yaml'
12 # - 'sed -i -z "s/redis:\n hostname: ''localhost''/redis:\n hostname: ''redis''/" config/test.yaml'
13 # - if [[ $CI_JOB_STAGE == "test" ]]; then psql -c "create user peertube with password 'peertube';"; fi
14 # - NOCLIENT=1 yarn install --pure-lockfile --cache-folder .yarn-cache
25 #.build-and-lint: &build-and-lint
26 # stage: build-and-lint
33 # - name: postgres:9.6
35 # - name: redis:latest
57 # - npm run build:server
62 # - yarn install --pure-lockfile --cache-folder .yarn-cache
63 # - npm run ci -- "lint"
71 # - yarn install --pure-lockfile --cache-folder .yarn-cache
72 # - npm run ci -- "misc"
79 # - npm run ci -- "cli"
87 # - NODE_PENDING_JOB_WAIT=1000 npm run ci -- api-$CI_NODE_INDEX
89 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 - mkdir -p /kaniko/.docker
126 - echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$CI_REGISTRY_AUTH\",\"email\":\"$CI_REGISTRY_EMAIL\"}}}" > /kaniko/.docker/config.json
128 - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/support/docker/production/Dockerfile.buster --destination $DOCKER_IMAGE_NAME
130 build-docker-develop:
135 DOCKER_IMAGE_NAME: chocobozzz/peertube:develop-buster
142 DOCKER_IMAGE_NAME: chocobozzz/peertube:$CI_COMMIT_TAG-buster
149 DOCKER_IMAGE_NAME: chocobozzz/peertube:production-buster
151 test-external-plugins:
152 stage: external-plugins
160 - name: rroemhild/test-openldap
172 - 'sed -i -z "s/database:\n hostname: ''localhost''/database:\n hostname: ''postgres''/" config/test.yaml'
173 - 'sed -i -z "s/redis:\n hostname: ''localhost''/redis:\n hostname: ''redis''/" config/test.yaml'
174 - psql -c "create user peertube with password 'peertube';"
175 - NOCLIENT=1 yarn install --pure-lockfile --cache-folder .yarn-cache
177 - npm run ci -- "external-plugins"