Scripts to download and install gitea and gitea-runner binary files
Helps to install and setup the gitea and gitea-runner binary
Things needed
The application "xc", "curl" and "jq" must be installed.
Both gitea and gitea-runner must be run a systemd control file named "gitea" and "gitea-runner"
Basic setup
In init.sh set to the full path including the binary name:
target_fileas to where the gitea binary is locatedtarget_file_runneras to where the gitea runner binary is located
If the download folder should be not in the subfolder "download" change the download_folder variable to the path as to where the files hould be downloaded. Note that this folder must exist
Architectures detected
Only arm64 and x86 64bit are auto detected
Download and install: gitea
Run download.sh to download the latest file. Fill re-download as a different name if the same file is requested
Run install.sh <version> to install the newest version
Download and install: gitea-runner
Run download-runner.sh to download the latest file. Fill re-download as a different name if the same file is requested
Run install-runner.sh <version> to install the newest version
Systemd
in the systemd folder are systemd service files that can be used with gitea and the gitea-runner
Note that in the gitea.service the "[Unit]" After= block needs to be adjusted depending on what services are used
Copy them into /etc/systemd/system/ and run systemctl daemon-reload, after that they can be launched with systemctl start <name> and enabled with systemctl enable <name>