set proper stages for phpdoc jobs

This commit is contained in:
Andrew Dolgov 2024-07-21 11:07:06 +03:00
parent 19c0909337
commit 29cc61d1e3
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A

View File

@ -81,9 +81,9 @@ ttrss-web-nginx:push-branch:
phpdoc:build:
image: ${PHP_IMAGE}
stage: lint
stage: publish
rules:
- if: $CI_COMMIT_BRANCH # == $CI_DEFAULT_BRANCH && $PHPDOC_DEPLOY_SSH_KEY != null
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script:
- php83 /phpDocumentor.phar -d classes -d include -t phpdoc --visibility=public
artifacts:
@ -92,11 +92,11 @@ phpdoc:build:
phpdoc:publish:
extends: .build-docker-kaniko
stage: lint
stage: publish
needs:
- job: phpdoc:build
rules:
- if: $CI_COMMIT_BRANCH # == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
variables:
DOCKERFILE: ${CI_PROJECT_DIR}/.docker/phpdoc/Dockerfile
NAME: ttrss-phpdoc