summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2024-07-21 10:45:01 +0300
committerAndrew Dolgov <[email protected]>2024-07-21 10:45:01 +0300
commit8f448685bea8bed15433221da74cde26d9116eed (patch)
treede16c84781a9826b1ab6eff467ca6193e2e373b8 /.gitlab-ci.yml
parent9d37158d8c8cde3f7738b64ca7164cd5b56933c5 (diff)
exp - use phpdoc container
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml24
1 files changed, 17 insertions, 7 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4a149f6d2..94b08f8cd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -79,17 +79,27 @@ ttrss-web-nginx:push-branch:
needs:
- job: ttrss-web-nginx:build
-phpdoc:
+phpdoc:build:
image: ${PHP_IMAGE}
- stage: publish
+ stage: lint
rules:
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $PHPDOC_DEPLOY_SSH_KEY != null
+ - if: $CI_COMMIT_BRANCH # == $CI_DEFAULT_BRANCH && $PHPDOC_DEPLOY_SSH_KEY != null
script:
- php83 /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/
+ artifacts:
+ paths:
+ - phpdoc
+
+phpdoc:publish:
+ extends: .build-docker-kaniko
+ stage: lint
+ needs:
+ - job: phpdoc:build
+ rules:
+ - if: $CI_COMMIT_BRANCH # == $CI_DEFAULT_BRANCH
+ variables:
+ DOCKERFILE: ${CI_PROJECT_DIR}/.docker/phpdoc/Dockerfile
+ VERSION: latest
phpunit-integration:
image: ${PHP_IMAGE}