This repository has been archived on 2021-05-18. You can view files and clone it, but cannot push or open issues or pull requests.
data/.drone.yml
tastytea 3c32f638da
All checks were successful
continuous-integration/drone/push Build is passing
Don't trigger CI on pushes to web*.
2020-10-18 08:42:56 +02:00

44 lines
869 B
YAML

# -*- fill-column: 1000 -*-
kind: pipeline
name: Validate JSON
volumes:
- name: debian-package-cache
host:
path: /var/cache/debian-package-cache
trigger:
branch:
exclude:
- web*
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 ]