CI: set some job filters

This commit is contained in:
Andrew Dolgov 2023-04-01 09:50:32 +03:00
parent 088dd049b5
commit 2b01786124
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 8 additions and 0 deletions

View File

@ -9,6 +9,12 @@ stages:
stage: build stage: build
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
changes:
- '**/*.php'
- '**/*.js'
- '.docker/**/*'
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: manual
before_script: before_script:
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY} - docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
- docker login -u ${DOCKER_HUB_USER} -p ${DOCKER_HUB_TOKEN} - docker login -u ${DOCKER_HUB_USER} -p ${DOCKER_HUB_TOKEN}
@ -101,6 +107,8 @@ phpdoc:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
changes: changes:
- '**/*.php' - '**/*.php'
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: manual
script: script:
- php81 /phpDocumentor.phar -d classes -d include -t phpdoc --visibility=public - php81 /phpDocumentor.phar -d classes -d include -t phpdoc --visibility=public
- mkdir -p ~/.ssh && - mkdir -p ~/.ssh &&