From 079fcc09edf59a6d60f523018c1e028bcb5a197b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <henrik@trineo.org> Date: Tue, 2 Mar 2021 14:36:28 +0100 Subject: [PATCH] FIX: run pages only on gitlab.com --- .gitlab-ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6cb5e229..2fd8a9cf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -92,15 +92,17 @@ build-testenv: - docker push $CI_REGISTRY_IMAGE # Build the sphinx documentation and make it ready for deployment by Gitlab Pages -# documentation: -# stage: deploy - # Special job for serving a static website. See https://docs.gitlab.com/ee/ci/yaml/README.html#pages pages: stage: deploy only: - # TODO this should be for master only, once releases are more regularly - - dev + refs: + - dev + - master + - /^release-.*$/i + variables: + # run pages only on gitlab.com + - $CI_SERVER_HOST == "gitlab.com" script: - echo "Deploying" - make doc -- GitLab