Browse Source

update-deploy

pull/40/head
fedy95 4 years ago
parent
commit
d4d065836c
  1. 6
      .drone.yml
  2. 10
      .editorconfig
  3. 19
      LICENSE
  4. 8
      Makefile
  5. 5
      README.md

6
.drone.yml

@ -34,7 +34,11 @@ steps:
commands: commands:
- cd /mnt/md0/infra/gitea - cd /mnt/md0/infra/gitea
- git pull - git pull
- echo 'need manual restart'
- make restart
- name: cleanup
commands:
- cd /mnt/md0/infra/plex
- make cleanup
trigger: trigger:
branch: branch:

10
.editorconfig

@ -0,0 +1,10 @@
root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100

19
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.

8
Makefile

@ -12,7 +12,11 @@ lint-yaml:
$(LINT-YAML-CMD) docker-compose.yml $(LINT-YAML-CMD) docker-compose.yml
restart: 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 .DEFAULT_GOAL := lint

5
README.md

@ -1,5 +1,6 @@
### Gitea
[![Build Status](https://drone.fedy95.com/api/badges/infra/gitea/status.svg)](https://drone.fedy95.com/infra/gitea)
### gitea [![Build Status](https://drone.fedy95.com/api/badges/infra/gitea/status.svg)](https://drone.fedy95.com/infra/gitea)
---
### services ### services
- [gitea docker-hub](https://hub.docker.com/r/gitea/gitea) - [gitea docker-hub](https://hub.docker.com/r/gitea/gitea)