1 image: chocobozzz/peertube-ci:10
9 # - 'sed -i -z "s/database:\n hostname: ''localhost''/database:\n hostname: ''postgres''/" config/test.yaml'
10 # - 'sed -i -z "s/redis:\n hostname: ''localhost''/redis:\n hostname: ''redis''/" config/test.yaml'
11 # - if [[ $CI_JOB_STAGE == "test" ]]; then psql -c "create user peertube with password 'peertube';"; fi
12 # - NOCLIENT=1 yarn install --pure-lockfile --cache-folder .yarn-cache
23 #.build-and-lint: &build-and-lint
24 # stage: build-and-lint
31 # - name: postgres:9.6
33 # - name: redis:latest
55 # - npm run build:server
60 # - yarn install --pure-lockfile --cache-folder .yarn-cache
61 # - npm run ci -- "lint"
69 # - yarn install --pure-lockfile --cache-folder .yarn-cache
70 # - npm run ci -- "misc"
77 # - npm run ci -- "cli"
85 # - NODE_PENDING_JOB_WAIT=1000 npm run ci -- api-$CI_NODE_INDEX
92 - yarn install --pure-lockfile --cache-folder .yarn-cache
94 - mkdir "${HOME}/.ssh"
95 - chmod 700 "${HOME}/.ssh"
96 - if [ ! -z ${DEPLOYEMENT_KNOWN_HOSTS+x} ]; then echo -e "${DEPLOYEMENT_KNOWN_HOSTS}" > ${HOME}/.ssh/known_hosts; fi
98 - if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then ssh-add <(echo "${DEPLOYEMENT_KEY}"); fi
99 - if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then scp ./peertube-nightly-* ${DEPLOYEMENT_USER}@${DEPLOYEMENT_HOST}:../../web/nightly; fi
102 stage: docker-nightly
104 name: gcr.io/kaniko-project/executor:debug
107 - echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$CI_REGISTRY_AUTH\",\"email\":\"$CI_REGISTRY_EMAIL\"}}}" > /kaniko/.docker/config.json
109 - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/support/docker/production/Dockerfile.stretch --destination $DOCKER_IMAGE_NAME
111 build-docker-develop:
116 DOCKER_IMAGE_NAME: chocobozzz/peertube:develop-stretch
123 DOCKER_IMAGE_NAME: chocobozzz/peertube:$CI_COMMIT_TAG-stretch
130 DOCKER_IMAGE_NAME: chocobozzz/peertube:production-stretch