attribute-spass/.drone.yml

73 lines
2 KiB
YAML
Raw Normal View History

2022-11-07 20:49:46 +00:00
kind: pipeline
type: docker
name: default
2023-01-25 21:19:36 +00:00
environment:
GIT_COMMIT_EMAIL: gitbot@git.php.fail
GIT_COMMIT_USER: gitbot
SSH_PUB_KEY: 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEy6QTLs5C32ZcRgHdi7oTay5p2o/S3SBrWTxgSQkGcC gitbot <gitbot@git.php.fail>'
2022-11-07 20:49:46 +00:00
steps:
- name: install
2023-01-25 21:19:36 +00:00
image: git.php.fail/lubiana/container/php:82
volumes:
- name: composer-cache
path: /root/.composer-cache
2022-11-07 20:49:46 +00:00
commands:
2023-01-25 21:19:36 +00:00
- composer config -g cache-dir /root/.composer-cache
2022-11-07 20:49:46 +00:00
- composer install
2023-01-25 21:19:36 +00:00
- name: rector
image: git.php.fail/lubiana/container/php:82
2022-11-07 20:49:46 +00:00
commands:
2023-01-25 21:19:36 +00:00
- php ./vendor/bin/rector
2022-11-07 20:49:46 +00:00
depends_on:
- install
2023-01-25 21:19:36 +00:00
- 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
2022-11-07 20:49:46 +00:00
- name: ecs
2023-01-25 21:19:36 +00:00
image: git.php.fail/lubiana/container/php:82
2022-11-07 20:49:46 +00:00
commands:
2023-01-25 21:19:36 +00:00
- php ./vendor/bin/ecs --fix
- php ./vendor/bin/ecs --fix
2022-11-07 20:49:46 +00:00
depends_on:
2023-01-25 21:19:36 +00:00
- 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:
- php ./vendor/bin/phpstan analyze
depends_on:
- git-ecs
- name: git-push
image: git.php.fail/lubiana/container/drone-plugin-signed-git:1.0.0
settings:
repo: lubiana/attribute-magix
DO_COMMIT: false
DO_PUSH: true
GIT_COMMIT_PREFIX: ''
SSH_PRIV_KEY:
from_secret: SSH_PRIV_KEY
depends_on:
- phpstan
2022-11-07 20:49:46 +00:00
2023-01-25 21:19:36 +00:00
volumes:
- name: composer-cache
host:
path: /var/lib/drone/drone-composer-cache