This commit is contained in:
tastytea 2020-10-18 02:49:28 +02:00
parent 727ffe1c01
commit efa96ece3f
Signed by untrusted user: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 38 additions and 0 deletions

38
.drone.yml Normal file
View File

@ -0,0 +1,38 @@
# -*- fill-column: 1000 -*-
kind: pipeline
name: Validate JSON
volumes:
- name: debian-package-cache
host:
path: /var/cache/debian-package-cache
steps:
- name: jsonlint-php
image: debian:buster-slim
pull: always
environment:
DEBIAN_FRONTEND: noninteractive
LANG: C.utf8
commands:
- rm /etc/apt/apt.conf.d/docker-clean
- alias apt-get='rm -f /var/cache/apt/archives/lock && apt-get'
- apt-get update -q
- apt-get install -qq jsonlint
- jsonlint-php *.json
volumes:
- name: debian-package-cache
path: /var/cache/apt/archives
- name: notify
image: drillster/drone-email
pull: always
settings:
host: mail.tzend.de
from: drone@tzend.de
username:
from_secret: email_username
password:
from_secret: email_password
when:
status: [ changed, failure ]