From 28a911a2a8414524f5d9851a1348129b6fe1a55b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 1 Apr 2023 09:34:54 +0300 Subject: [PATCH] add phpdoc job --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 562eb776d..8230a085a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -92,3 +92,17 @@ ttrss-fpm-pgsql-static: variables: BUILD_CONTEXT: ${CI_PROJECT_DIR}/.docker/app +phpdoc: + image: + name: ${CI_DOCKER_IMAGE} + stage: deploy + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + changes: + - '**/*.php' + script: + - php81 /phpDocumentor.phar -d classes -d include -t phpdoc --visibility=public + - mkdir -p ~/.ssh && + cp ${PHPDOC_DEPLOY_SSH_KEY} ~/.ssh/id_ed25519 && + chmod 0600 ~/.ssh/id_ed25519 + - rsync -av -e 'ssh -o StrictHostKeyChecking=no' phpdoc/ ${PHPDOC_DEPLOY_HOST}:phpdoc/