|
5 months ago | |
---|---|---|
.github | 1 year ago | |
gitea_auto_update | 10 months ago | |
.gitignore | 1 year ago | |
.gitlint | 1 year ago | |
.pre-commit-config.yaml | 8 months ago | |
.travis.yml | 10 months ago | |
CONTRIBUTING.md | 10 months ago | |
LICENSE | 1 year ago | |
Pipfile | 8 months ago | |
README.md | 5 months ago | |
settings.ini | 1 year ago | |
setup.py | 8 months ago |
Script for a automatic update of gitea. Should be run locally on the gitea server. Has options for updating via new binary file or build from source.
License: GNU General Public License
Author: Christoph Daniel Miksche (m5e.de)
Uses python version 3
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=
sourceDir=
logFile=update.log
Use the following command to install gitea-auto-update.
sudo pip3 install gitea-auto-update
Enter the command gite-auto-update --settings=/path/to/settings.ini
in your commandline.
If you want to schedule your updates, edit your /etc/crontab file.
The following instructions help you for developing.
pip install pipenv
pipenv install
pre-commit install
python -m unittest
The following steps are automatically executed via pre-commit hooks.
pylint gitea_auto_update
gitlint
. If there is a problem, gitlint will show you a error message.Thank you for your support!
Interested in contributing to this project? Check out the Contribution Guidelines.