diff options
author | Andrew Dolgov <[email protected]> | 2023-04-01 09:34:54 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-04-01 09:34:59 +0300 |
commit | 28a911a2a8414524f5d9851a1348129b6fe1a55b (patch) | |
tree | 56b6e6f6b2f0625dc0a5648fa7e753509eaeee27 /.gitlab-ci.yml | |
parent | 066b9a29d7cedc3c655e7ac8dedf41d8a2f6ff3e (diff) |
add phpdoc job
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 14 |
1 files changed, 14 insertions, 0 deletions
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/ |