]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - .gitlab-ci.yml
Translated using Weblate (Romanian)
[github/Chocobozzz/PeerTube.git] / .gitlab-ci.yml
CommitLineData
2284f202
C
1image: chocobozzz/peertube-ci:10
2
3stages:
002df381 4 - clients
45de2dfc 5 - docker-nightly
2284f202 6
2284f202
C
7cache:
8 key: yarn
9 paths:
10 - .yarn-cache
11 - cached-fixtures
12
002df381
AD
13build-openapi-clients:
14 stage: clients
15 only:
16 refs:
17 - master
18 - schedules
19 changes:
20 - support/doc/api/openapi.yaml
829b794a 21 script:
002df381
AD
22 - apt-get update -qq
23 - apt-get -yqqq install openjdk-8-jre
24 - yarn install --pure-lockfile
25 - scripts/openapi-peertube-version.sh
26 - scripts/openapi-clients.sh
27
2284f202 28build-nightly:
4ba56322 29 stage: docker-nightly
2284f202
C
30 only:
31 - schedules
32 script:
33 - yarn install --pure-lockfile --cache-folder .yarn-cache
34 - npm run nightly
35 - mkdir "${HOME}/.ssh"
36 - chmod 700 "${HOME}/.ssh"
37 - if [ ! -z ${DEPLOYEMENT_KNOWN_HOSTS+x} ]; then echo -e "${DEPLOYEMENT_KNOWN_HOSTS}" > ${HOME}/.ssh/known_hosts; fi
38 - eval `ssh-agent -s`
39 - if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then ssh-add <(echo "${DEPLOYEMENT_KEY}"); fi
40 - if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then scp ./peertube-nightly-* ${DEPLOYEMENT_USER}@${DEPLOYEMENT_HOST}:../../web/nightly; fi
41
4ba56322
C
42.docker: &docker
43 stage: docker-nightly
13927f45 44 cache: {}
4ba56322
C
45 image:
46 name: gcr.io/kaniko-project/executor:debug
47 entrypoint: [""]
48 before_script:
e5c86ba7 49 - mkdir -p /kaniko/.docker
4ba56322
C
50 - echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$CI_REGISTRY_AUTH\",\"email\":\"$CI_REGISTRY_EMAIL\"}}}" > /kaniko/.docker/config.json
51 script:
c82bf36a 52 - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/support/docker/production/Dockerfile.buster --destination $DOCKER_IMAGE_NAME
4ba56322
C
53
54build-docker-develop:
55 <<: *docker
56 only:
57 - schedules
4ba56322 58 variables:
c82bf36a 59 DOCKER_IMAGE_NAME: chocobozzz/peertube:develop-buster
4ba56322
C
60
61build-docker-tag:
62 <<: *docker
63 only:
64 - tags
65 variables:
c82bf36a 66 DOCKER_IMAGE_NAME: chocobozzz/peertube:$CI_COMMIT_TAG-buster
2e2c02b4
C
67
68build-docker-master:
69 <<: *docker
70 only:
71 - master
72 variables:
c82bf36a 73 DOCKER_IMAGE_NAME: chocobozzz/peertube:production-buster