Browse Source

add-drone

pull/4/head
fedy95 5 years ago
parent
commit
3a31c17ae4
  1. 27
      .drone.yml
  2. 9
      Makefile
  3. 5
      README.md

27
.drone.yml

@ -0,0 +1,27 @@
kind: pipeline
type: ssh
name: default
clone:
disable: true
server:
host:
from_secret: host
user:
from_secret: user
password:
from_secret: password
steps:
- name: release
commands:
- cd /mnt/md0/infra/pi-hole
- git pull
- make restart
trigger:
branch:
- master
event:
- push

9
Makefile

@ -0,0 +1,9 @@
MAKEFLAGS += --silent
.PHONY: *
restart:
docker-compose -f docker-compose.yml down
docker-compose -f docker-compose.yml up -d
.DEFAULT_GOAL := restart

5
README.md

@ -1,4 +1,7 @@
### info
### pi-hole
[![Build Status](https://drone.fedy95.com/api/badges/infra/pi-hole/status.svg)](https://drone.fedy95.com/infra/pi-hole)
### services
- [docker-pi-hole](https://github.com/pi-hole/docker-pi-hole)
- [pi-hole](https://github.com/pi-hole/pi-hole)