All Projects → CMiksche → gitea-auto-update

CMiksche / gitea-auto-update

Licence: GPL-3.0 License
A script which can update gitea via crontab automatically to a new version.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to gitea-auto-update

kali-wsl
KALI LINUX : WINDOWS SUBSYSTEM FOR LINUX
Stars: ✭ 56 (+124%)
Mutual labels:  update, upgrade
pf4j-update
Update mechanism for PF4J
Stars: ✭ 56 (+124%)
Mutual labels:  update
Gigrator
Git repos migration tool which supports Github / Gitee / Gitlab / Gitea / Coding / Gogs / 腾讯工蜂.
Stars: ✭ 34 (+36%)
Mutual labels:  gitea
your own git
Your own git server, not Microsoft's
Stars: ✭ 34 (+36%)
Mutual labels:  gitea
rom-operator-inference-Python3
Operator Inference for data-driven, non-intrusive model reduction of dynamical systems.
Stars: ✭ 31 (+24%)
Mutual labels:  python-package
autoupgrade
Upgrade module for PrestaShop
Stars: ✭ 71 (+184%)
Mutual labels:  upgrade
gitlab to gitea
Gitlab to Gitea migration script.
Stars: ✭ 54 (+116%)
Mutual labels:  gitea
aotools
A useful set of tools for Adaptive Optics in Python
Stars: ✭ 60 (+140%)
Mutual labels:  python-package
Steam-Apps-Management-API
A basic Steam Application Management API and Valve Data Format (VDF) reader/writer.
Stars: ✭ 24 (-4%)
Mutual labels:  update
ISS Info
Python wrapper for tracking information about International Space Station via http://open-notify.org
Stars: ✭ 12 (-52%)
Mutual labels:  python-package
Playlist-Length
A simple command line tool to get length of all the video and/or audio files in a directory and its sub-directories recursively
Stars: ✭ 29 (+16%)
Mutual labels:  python-package
grunt-dev-update
Automate the updating of your package.json packages with a grunt task
Stars: ✭ 29 (+16%)
Mutual labels:  update
go-sdk
Gitea: Golang SDK, moved to https://gitea.com/gitea/go-sdk
Stars: ✭ 28 (+12%)
Mutual labels:  gitea
terraform-module-versions
CLI tool that checks Terraform code for module updates. Single binary, no dependencies. linux, osx, windows. #golang #cli #terraform
Stars: ✭ 143 (+472%)
Mutual labels:  update
logya
Logya is a static site generator written in Python designed to be easy to use and flexible.
Stars: ✭ 16 (-36%)
Mutual labels:  python-package
UserCenter
Personal open source user center
Stars: ✭ 28 (+12%)
Mutual labels:  update
Xrm-Quick-Edit
A Dynamics CRM Add-In for speeding up tasks such as translating or toggling field security on or off
Stars: ✭ 13 (-48%)
Mutual labels:  update
infrastructure
Deprecated due to new Gitea.com infra
Stars: ✭ 14 (-44%)
Mutual labels:  gitea
no-ip
Noip.com Dynamic DNS update client built in Node.js
Stars: ✭ 33 (+32%)
Mutual labels:  update
iQuail
Easy to use cross-platform installer & updater for desktop applications
Stars: ✭ 20 (-20%)
Mutual labels:  update

Gitea Auto Update

Build Status PyPI version Downloads

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.

Procedure

  • Get Gitea Version from the Gitea CLI and if that fails from the Gitea API
  • Get latest Release via GitHub API
  • Check if there is a newer Version
  • If there is a newer Version:
    • If binary file was selected:
      • Download new version
      • Check sha256
      • Overwrite old version
    • If build from source is active:
      • Checkout new release branch
      • Build binary
      • Overwrite old binary

General Information

License: GNU General Public License

Author: Christoph Daniel Miksche (m5e.de)

Uses python version 3

Installation

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 gitea-auto-update --settings=/path/to/settings.ini in your commandline.

If you want to schedule your updates, edit your /etc/crontab file.

Tutorials

Development

The following instructions help you for developing.

  • Check out the Contribution Guidelines.
  • Clone this git repo
  • Install pipenv: pip install pipenv
  • Install all dependencies: pipenv install
  • Install git pre-commit hooks (for pylint and gitlint) with pre-commit install
  • You can run the tests with python -m unittest
  • After pushing, you should check the build status which currently checks the tests, pylint and the commit message format.

Notes

The following steps are automatically executed via pre-commit hooks.

  • You can run pylint with pylint gitea_auto_update
  • After changes and commit, you can check if your commit message follows the contribution guidelines with gitlint. If there is a problem, gitlint will show you a error message.

Contributors

See https://github.com/CMiksche/gitea-auto-update/graphs/contributors

Thank you for your support!

Interested in contributing to this project? Check out the Contribution Guidelines.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].