doc: improve sections

This commit is contained in:
2026-02-17 14:28:39 +01:00
parent b1f6a731a7
commit 995b60af81

View File

@@ -36,10 +36,9 @@ A `Makefile` is integrated to let you run some basic commands.
rpmbuild -ba netoik-rp.spec rpmbuild -ba netoik-rp.spec
``` ```
- To upload rpm package to Gitea repository: - To upload rpm package to Gitea repository
(env vars `GIT_PACKAGES_USERNAME` and `GIT_PACKAGES_TOKEN` needed):
```shell ```shell
# This command needs 2 env variables:
# GIT_PACKAGES_USERNAME and GIT_PACKAGES_TOKEN
make upload make upload
``` ```
@@ -62,22 +61,26 @@ Two workflows are set up.
# Deployment # Deployment
Some commands to deploy the RPM package on server: Some commands to deploy the RPM package on server
- To add Gitea repo to your repo list:
```shell ```shell
# Add Gitea repo to your repolist
dnf config-manager --add-repo https://git.netoik.io/api/packages/samuel/rpm.repo dnf config-manager --add-repo https://git.netoik.io/api/packages/samuel/rpm.repo
# Check Gitea repo is added
dnf repolist | grep gitea-samuel dnf repolist | grep gitea-samuel
```
# Show available package releases - To show available versions:
```shell
dnf --showduplicates netoik-rp dnf --showduplicates netoik-rp
```
# Install or upgrade package - To install or upgrade:
```shell
dnf --nogpgcheck install netoik-rp dnf --nogpgcheck install netoik-rp
dnf --nogpgcheck upgrade netoik-rp dnf --nogpgcheck upgrade netoik-rp
``` ```
# Security Notes # Security Notes
For security reasons, act runners does not have sudo privileges and so there is: For security reasons, act runners does not have sudo privileges and so there is: