diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..0d17729 --- /dev/null +++ b/.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/plex + - git pull + - make restart + +trigger: + branch: + - master + event: + - push diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a3170a5 --- /dev/null +++ b/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 diff --git a/README.md b/README.md index 8bbd76d..420a0c3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -### info +### Plex +[![Build Status](https://drone.fedy95.com/api/badges/infra/plex/status.svg)](https://drone.fedy95.com/infra/plex) + +### services - [linuxserver/plex](https://hub.docker.com/r/linuxserver/plex) - [nginx-reverseproxy](https://github.com/toomuchio/plex-nginx-reverseproxy) - \ No newline at end of file