Auto build peertube webserver docker image

pull/3543/head
Chocobozzz 2021-01-06 09:59:11 +01:00
parent 7cf88d098a
commit 5c69b433d8
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 12 additions and 1 deletions

View File

@ -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