1
0
mirror of https://github.com/CMiksche/gitea-auto-update synced 2025-12-10 16:07:23 +01:00

feat: New structure, added CLI, logging and setup

* Changed structure to a Object orientated approach.
* Add CLI with input for the settings file.
* Added logging via file.
* Added setup for publishing in pip.
This commit is contained in:
Christoph Miksche
2019-08-26 21:26:19 +02:00
parent 508b0ceb55
commit d95f1aacb8
15 changed files with 320 additions and 199 deletions

View File

@@ -1,4 +1,4 @@
# Gitea Auto Updater
# Gitea Auto Update
[![Build Status](https://travis-ci.org/CMiksche/gitea-auto-update.svg?branch=master)](https://travis-ci.org/CMiksche/gitea-auto-update)
@@ -28,19 +28,29 @@ Uses python version 3
## Installation
1. Use the following command to install all dependencies.
Create a settings.ini file on your system. Example:
````
[Gitea]
site=https://your-gitea-instance.com/api/v1/version
apiUrl=https://api.github.com/repos/go-gitea/gitea/releases/latest
system=linux-amd64
file=/usr/local/bin/gitea
tmpDir=/tmp/
buildFromSource=None
sourceDir=/home/git/go/src/code.gitea.io/gitea
logFile=update.log
````
Use the following command to install all gitea-auto-update.
```
sudo pip install requests packaging
sudo pip install gitea-auto-update
```
2. Then clone the git repository.
Enter the command `gite-auto-update --settings=/path/to/settings.ini` in your commandline.
3. After that, please change the variables in the settings.py file.
4. Enter the command `python updater.py` in your commandline.
5. If you want to schedule your updates, edit your /etc/crontab file.
If you want to schedule your updates, edit your /etc/crontab file.
## Tutorials