diff --git a/.drone.yml b/.drone.yml index caaab54..d00d3ed 100644 --- a/.drone.yml +++ b/.drone.yml @@ -31,11 +31,15 @@ server: from_secret: password steps: - - name: release + - name: deploy commands: - cd /mnt/md0/infra/docker_registry - git pull - make restart + - name: cleanup + commands: + - cd /mnt/md0/infra/plex + - make cleanup trigger: branch: diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b195b12 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +MIT License Copyright (c) 2021 fedy95 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice (including the next +paragraph) shall be included in all copies or substantial portions of the +Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS +OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF +OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Makefile b/Makefile index 94b755a..e41d653 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,11 @@ lint-yaml: $(LINT-YAML-CMD) docker-compose.yml restart: - docker-compose -f docker-compose.yml down - docker-compose -f docker-compose.yml up -d + docker-compose -f docker-compose.yml pull + docker-compose -f docker-compose.yml restart + +cleanup: + docker system prune --all --force + docker system prune --volumes --force .DEFAULT_GOAL := lint diff --git a/README.md b/README.md index cce903e..0aaddf9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ -### docker_registry -[![Build Status](https://drone.fedy95.com/api/badges/infra/docker_registry/status.svg)](https://drone.fedy95.com/infra/docker_registry) +### docker_registry [![Build Status](https://drone.fedy95.com/api/badges/infra/docker_registry/status.svg)](https://drone.fedy95.com/infra/docker_registry) + +--- - [docker-hub](https://hub.docker.com/_/registry)