data/.drone.yml

60 lines
1.1 KiB
YAML
Raw Normal View History

2020-10-18 02:49:28 +02:00
# -*- fill-column: 1000 -*-
kind: pipeline
name: Validate JSON
volumes:
- name: debian-package-cache
host:
path: /var/cache/debian-package-cache
2020-10-18 08:42:56 +02:00
trigger:
branch:
exclude:
- web*
2020-10-18 02:49:28 +02:00
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 ]
2020-10-19 05:03:35 +02:00
# ---
# kind: pipeline
# type: exec
# name: Deploy
2020-10-19 05:03:35 +02:00
# trigger:
# branch:
# - main
# event:
# - push
2020-10-19 05:03:35 +02:00
# steps:
# - name: Re-generate website
# commands:
# - /home/tastytea/bin/update_fediblock.org.sh