Gitea is a community managed lightweight code hosting solution written in Go. It is published under the MIT license.
Gitea is a community managed lightweight code hosting solution written in Go. It is published under the MIT license.
You can set the version in Version variable. You can use following values:
latest - latest stable release nightly - latest Github master branch version - set the version according this page: https://dl.gitea.io/gitea
Ports required to run the server in a table format.
| Port | default |
|---|---|
| App | 3000 |
| SSH | 2020 |
| Name | Tag |
|---|---|
| ghcr.io/ptero-eggs/yolks:debian | ghcr.io/ptero-eggs/yolks:debian |
Disable SSH feature when it’s not available
SSH port displayed in clone URL.
you can use latest, nightly or version (e.g. 1.18.1)
## Gitea Installscript
## update system
apt update
apt -y install --no-install-recommends jq curl ca-certificates
## Variables
ARCH=$([[ "$(uname -m)" == "x86_64" ]] && echo "amd64" || echo "arm64")
LATEST=$(curl -sSL https://dl.gitea.io/gitea/version.json | jq -r .latest.version)
cd /mnt/server
## install gitea
echo -e "Download url: https://dl.gitea.io/gitea/${LATEST}/gitea-${LATEST}-linux-${ARCH}"
if [ -z "${VERSION}" ] || [ "${VERSION}" == "latest" ]; then
echo -e "downloading Gitea $LATEST"
curl -sSL -o gitea https://dl.gitea.io/gitea/${LATEST}/gitea-${LATEST}-linux-${ARCH}
elif [ "${VERSION}" == "nightly" ]; then
echo -e "downloading Gitea nightly"
curl -sSL -o gitea https://dl.gitea.io/gitea/main/gitea-main-linux-${ARCH}
else
curl -sSL -o gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-${ARCH}
echo -e "downloading Gitea $VERSION"
fi
chmod +x gitea
mkdir -p custom
if [ -f "/mnt/server/custom/app.ini" ]; then
echo "config file exists"
else
echo "[server]
LOCAL_ROOT_URL = http://${SERVER_IP}:${SERVER_PORT}/
DOMAIN = ${SERVER_IP}
HTTP_PORT = ${SERVER_PORT}
ROOT_URL = http://${SERVER_IP}:${SERVER_PORT}/
DISABLE_SSH = ${DISABLE_SSH}
SSH_PORT = ${SSH_PORT}" > /mnt/server/custom/app.ini
fi
echo -e "-------------------------------------------------"
echo -e "Installation completed"
echo -e "-------------------------------------------------"| Installation Image | ghcr.io/ptero-eggs/installers:debian | Installation Entrypoint | bash |
|---|