MangoNotes/.drone.yml

34 lines
644 B
YAML

kind: pipeline
name: default
steps:
- name: install
image: composer
commands:
- composer install
- name: test
image: php:latest
environment:
APP_KEY:
from_secret: APP_KEY
commands:
- vendor/bin/phpunit --configuration phpunit.xml
- publish:
name: Dockerr
image: plugins/docker
repo: https://tea.nightly.town/Mangoberry/MangoNotes
username: nightlymania
password:
from_secret: dockerpasswd
when:
branch: master
- name: Discord notification
image: appleboy/drone-discord
settings:
webhook_id:
from_secret: webhook_id
webhook_token:
from_secret: webhook_token