add phpdoc job

This commit is contained in:
Andrew Dolgov 2023-04-01 09:34:54 +03:00
parent 066b9a29d7
commit 28a911a2a8
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 14 additions and 0 deletions

View File

@ -92,3 +92,17 @@ ttrss-fpm-pgsql-static:
variables: variables:
BUILD_CONTEXT: ${CI_PROJECT_DIR}/.docker/app 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/