This repository contains a github action whose goal is to:
- Build the debian packages for 2 suites (
bookworm
andbullseye
as of July 2023) and 3 architectures (amd64
,arm64
andarmhf
as of July 2023) - Push the debian packages to the Opendigitalradio debian apt repository
Your repository must contain the following:
- Secret
DEBIAN_GIT_TOKEN
storing the token to checkout the debianized sources git repository - Secret
APT_SSH_KEY
storing the ssh key to access the apt server - Variable
DEBIAN_GIT_SERVER
storing the url of the git server hosting the debianized sources - Variable
DEBIAN_GIT_OWNER
storing the owner of the debianized sources on the git server - Variable
APT_SSH_TO
storing the ssh destination where the debian packages will be sent to - Variable
APT_SSH_KNOWN_HOSTS
storing the output of the commandssh-keyscan -p 222 -t ed25519 mpb.li
The debian packages should be built and pushed only after a new version is created on the debian git repository
- Select the menu
actions
on the github web interface - Select the
Build And Push Debian Packages
action on the left - Click on the
Run workflow
button on the right - Select the Opendigitalradio tool
- Click on the
Run workflow
button and relax
Once the action is completed, the debian package files are available in the directory /home/robinalexander/incoming/{bookworm,bullseye}
folders
You will need to have:
- read/write access to the
incoming
folder on the apt server - the GPG private key to sign the debian packages when running the
reprepro
command below
Run the following commands on your local host (not the apt server):
- Sync the incoming folder to your localhost from the apt server
rsync \ --archive \ --recursive \ --rsh="ssh -p 222" \ robinalexander@mpb.li:incoming .
- Sync the apt folder to your local host from the apt server
rsync \ --archive \ --recursive \ --rsh="ssh -p 222" \ robinalexander@mpb.li:apt .
- Include the debian packages on your local host
for suite in bookworm bullseye; do reprepro include "${suite}" <debian_package>.changes done
- Sync the apt folder to the apt server from your local host
rsync \ --archive \ --recursive \ --rsh="ssh -p 222" \ apt robinalexander@mpb.li: