From 5c69b433d8f5d8f6c03963cd124ba9c667734c2c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 6 Jan 2021 09:59:11 +0100 Subject: [PATCH] Auto build peertube webserver docker image --- .gitlab-ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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: - mkdir -p /kaniko/.docker - echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$CI_REGISTRY_AUTH\",\"email\":\"$CI_REGISTRY_EMAIL\"}}}" > /kaniko/.docker/config.json script: - - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/support/docker/production/Dockerfile.buster --destination $DOCKER_IMAGE_NAME + - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $DOCKERFILE --destination $DOCKER_IMAGE_NAME build-docker-develop: <<: *docker @@ -57,6 +57,15 @@ build-docker-develop: - schedules variables: DOCKER_IMAGE_NAME: chocobozzz/peertube:develop-buster + DOCKERFILE: $CI_PROJECT_DIR/support/docker/production/Dockerfile.buster + +build-docker-webserver: + <<: *docker + only: + - schedules + variables: + DOCKER_IMAGE_NAME: chocobozzz/peertube-webserver + DOCKERFILE: $CI_PROJECT_DIR/support/docker/production/Dockerfile.nginx build-docker-tag: <<: *docker @@ -64,6 +73,7 @@ build-docker-tag: - tags variables: DOCKER_IMAGE_NAME: chocobozzz/peertube:$CI_COMMIT_TAG-buster + DOCKERFILE: $CI_PROJECT_DIR/support/docker/production/Dockerfile.buster build-docker-master: <<: *docker @@ -71,3 +81,4 @@ build-docker-master: - master variables: DOCKER_IMAGE_NAME: chocobozzz/peertube:production-buster + DOCKERFILE: $CI_PROJECT_DIR/support/docker/production/Dockerfile.buster