setup pipeline
This commit is contained in:
parent
7d8bb55f94
commit
7d208d1e42
1 changed files with 60 additions and 13 deletions
73
.drone.yml
73
.drone.yml
|
@ -2,25 +2,72 @@ kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
|
environment:
|
||||||
|
GIT_COMMIT_EMAIL: gitbot@git.php.fail
|
||||||
|
GIT_COMMIT_USER: gitbot
|
||||||
|
SSH_PUB_KEY: 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEy6QTLs5C32ZcRgHdi7oTay5p2o/S3SBrWTxgSQkGcC gitbot <gitbot@git.php.fail>'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: install
|
- name: install
|
||||||
image: git.php.fail/lubiana/container/php:81
|
image: git.php.fail/lubiana/container/php:82
|
||||||
|
volumes:
|
||||||
|
- name: composer-cache
|
||||||
|
path: /root/.composer-cache
|
||||||
commands:
|
commands:
|
||||||
- cd app
|
- composer config -g cache-dir /root/.composer-cache
|
||||||
- composer install
|
- composer install
|
||||||
- name: phpstan
|
- name: rector
|
||||||
image: git.php.fail/lubiana/container/php:81
|
image: git.php.fail/lubiana/container/php:82
|
||||||
|
commands:
|
||||||
|
- php ./vendor/bin/rector
|
||||||
|
depends_on:
|
||||||
|
- install
|
||||||
|
- name: git-rector
|
||||||
|
image: git.php.fail/lubiana/container/drone-plugin-signed-git:1.0.0
|
||||||
|
settings:
|
||||||
|
repo: lubiana/attribute-magix
|
||||||
|
DO_COMMIT: true
|
||||||
|
GIT_COMMIT_PREFIX: '[rector]'
|
||||||
|
SSH_PRIV_KEY:
|
||||||
|
from_secret: SSH_PRIV_KEY
|
||||||
|
depends_on:
|
||||||
|
- rector
|
||||||
|
- name: ecs
|
||||||
|
image: git.php.fail/lubiana/container/php:82
|
||||||
|
commands:
|
||||||
|
- php ./vendor/bin/ecs --fix
|
||||||
|
- php ./vendor/bin/ecs --fix
|
||||||
|
depends_on:
|
||||||
|
- git-rector
|
||||||
|
- name: git-ecs
|
||||||
|
image: git.php.fail/lubiana/container/drone-plugin-signed-git:1.0.0
|
||||||
|
settings:
|
||||||
|
repo: lubiana/attribute-magix
|
||||||
|
DO_COMMIT: true
|
||||||
|
GIT_COMMIT_PREFIX: '[ecs]'
|
||||||
|
SSH_PRIV_KEY:
|
||||||
|
from_secret: SSH_PRIV_KEY
|
||||||
|
depends_on:
|
||||||
|
- ecs
|
||||||
|
- name: phpstan
|
||||||
|
image: git.php.fail/lubiana/container/php:82
|
||||||
commands:
|
commands:
|
||||||
- cd app
|
|
||||||
- php ./vendor/bin/phpstan analyze
|
- php ./vendor/bin/phpstan analyze
|
||||||
depends_on:
|
depends_on:
|
||||||
- install
|
- git-ecs
|
||||||
- name: ecs
|
- name: git-push
|
||||||
image: git.php.fail/lubiana/container/php:81
|
image: git.php.fail/lubiana/container/drone-plugin-signed-git:1.0.0
|
||||||
commands:
|
settings:
|
||||||
- cd app
|
repo: lubiana/attribute-magix
|
||||||
- php ./vendor/bin/ecs
|
DO_COMMIT: false
|
||||||
|
DO_PUSH: true
|
||||||
|
GIT_COMMIT_PREFIX: ''
|
||||||
|
SSH_PRIV_KEY:
|
||||||
|
from_secret: SSH_PRIV_KEY
|
||||||
depends_on:
|
depends_on:
|
||||||
- install
|
- phpstan
|
||||||
|
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: composer-cache
|
||||||
|
host:
|
||||||
|
path: /var/lib/drone/drone-composer-cache
|
Loading…
Reference in a new issue