diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-06 09:59:11 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-06 09:59:11 +0100 |
commit | 5c69b433d8f5d8f6c03963cd124ba9c667734c2c (patch) | |
tree | 7af1bfeba1d26e0b18a146cdd84455205cfc3d64 /.gitlab-ci.yml | |
parent | 7cf88d098adb543074f85be9c874ee9453371de9 (diff) | |
download | PeerTube-5c69b433d8f5d8f6c03963cd124ba9c667734c2c.tar.gz PeerTube-5c69b433d8f5d8f6c03963cd124ba9c667734c2c.tar.zst PeerTube-5c69b433d8f5d8f6c03963cd124ba9c667734c2c.zip |
Auto build peertube webserver docker image
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 358257209..4759b0861 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml | |||
@@ -49,7 +49,7 @@ build-nightly: | |||
49 | - mkdir -p /kaniko/.docker | 49 | - mkdir -p /kaniko/.docker |
50 | - echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$CI_REGISTRY_AUTH\",\"email\":\"$CI_REGISTRY_EMAIL\"}}}" > /kaniko/.docker/config.json | 50 | - echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$CI_REGISTRY_AUTH\",\"email\":\"$CI_REGISTRY_EMAIL\"}}}" > /kaniko/.docker/config.json |
51 | script: | 51 | script: |
52 | - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/support/docker/production/Dockerfile.buster --destination $DOCKER_IMAGE_NAME | 52 | - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $DOCKERFILE --destination $DOCKER_IMAGE_NAME |
53 | 53 | ||
54 | build-docker-develop: | 54 | build-docker-develop: |
55 | <<: *docker | 55 | <<: *docker |
@@ -57,6 +57,15 @@ build-docker-develop: | |||
57 | - schedules | 57 | - schedules |
58 | variables: | 58 | variables: |
59 | DOCKER_IMAGE_NAME: chocobozzz/peertube:develop-buster | 59 | DOCKER_IMAGE_NAME: chocobozzz/peertube:develop-buster |
60 | DOCKERFILE: $CI_PROJECT_DIR/support/docker/production/Dockerfile.buster | ||
61 | |||
62 | build-docker-webserver: | ||
63 | <<: *docker | ||
64 | only: | ||
65 | - schedules | ||
66 | variables: | ||
67 | DOCKER_IMAGE_NAME: chocobozzz/peertube-webserver | ||
68 | DOCKERFILE: $CI_PROJECT_DIR/support/docker/production/Dockerfile.nginx | ||
60 | 69 | ||
61 | build-docker-tag: | 70 | build-docker-tag: |
62 | <<: *docker | 71 | <<: *docker |
@@ -64,6 +73,7 @@ build-docker-tag: | |||
64 | - tags | 73 | - tags |
65 | variables: | 74 | variables: |
66 | DOCKER_IMAGE_NAME: chocobozzz/peertube:$CI_COMMIT_TAG-buster | 75 | DOCKER_IMAGE_NAME: chocobozzz/peertube:$CI_COMMIT_TAG-buster |
76 | DOCKERFILE: $CI_PROJECT_DIR/support/docker/production/Dockerfile.buster | ||
67 | 77 | ||
68 | build-docker-master: | 78 | build-docker-master: |
69 | <<: *docker | 79 | <<: *docker |
@@ -71,3 +81,4 @@ build-docker-master: | |||
71 | - master | 81 | - master |
72 | variables: | 82 | variables: |
73 | DOCKER_IMAGE_NAME: chocobozzz/peertube:production-buster | 83 | DOCKER_IMAGE_NAME: chocobozzz/peertube:production-buster |
84 | DOCKERFILE: $CI_PROJECT_DIR/support/docker/production/Dockerfile.buster | ||