update documentation to reflect name change from deb-mock to mock
Some checks failed
Build and Publish Debian Package / build-deb (push) Failing after 2s
Build Deb-Mock Package / build (push) Successful in 57s
Test Deb-Mock Build / test (push) Successful in 1m2s

This commit is contained in:
robojerk 2025-08-04 01:19:49 +00:00
parent b5eb266f80
commit 6105d1b56e

View file

@ -1,6 +1,6 @@
# CI/CD Package Registry Setup
This document summarizes the implementation of Forgejo Package Registry integration for Deb-Mock, based on the successful implementation in bootc-deb.
This document summarizes the implementation of Forgejo Package Registry integration for Mock, based on the successful implementation in bootc-deb.
## Overview
@ -23,11 +23,11 @@ The `.forgejo/workflows/build-deb.yml` workflow now includes:
- name: Create release assets
run: |
mkdir -p release-assets
cp ../deb-mock_*.deb release-assets/
cp ../deb-mock_*.changes release-assets/
cp ../mock_*.deb release-assets/
cp ../mock_*.changes release-assets/
# Create build summary
echo "Deb-Mock Package Build Summary" > release-assets/BUILD_SUMMARY.txt
echo "Mock Package Build Summary" > release-assets/BUILD_SUMMARY.txt
echo "Build Date: $(date)" >> release-assets/BUILD_SUMMARY.txt
echo "Version: $VERSION" >> release-assets/BUILD_SUMMARY.txt
```
@ -37,7 +37,7 @@ The `.forgejo/workflows/build-deb.yml` workflow now includes:
- name: Upload to Forgejo Debian Package Registry
if: startsWith(github.ref, 'refs/tags/')
run: |
for deb_file in ../deb-mock_*.deb; do
for deb_file in ../mock_*.deb; do
if [ -f "$deb_file" ]; then
http_code=$(curl -s -o /dev/null -w "%{http_code}" \
--user "robojerk:${{ secrets.ACCESS_TOKEN }}" \
@ -53,8 +53,8 @@ The `.forgejo/workflows/build-deb.yml` workflow now includes:
### 2. Comparison with bootc-deb
| Feature | bootc-deb | deb-mock | Status |
|---------|-----------|----------|--------|
| Feature | bootc-deb | mock | Status |
|---------|-----------|------|--------|
| **Package Building** | ✅ Rust/Cargo | ✅ Python/setuptools | ✅ Implemented |
| **Version Extraction** | ✅ From Cargo.toml | ✅ From setup.py | ✅ Implemented |
| **Release Assets** | ✅ BUILD_SUMMARY.txt | ✅ BUILD_SUMMARY.txt | ✅ Implemented |
@ -68,15 +68,15 @@ The `.forgejo/workflows/build-deb.yml` workflow now includes:
#### **Distribution Choice**
- **bootc-deb**: Uses `noble` (Ubuntu 24.04)
- **deb-mock**: Uses `unstable` (Debian unstable)
- **mock**: Uses `unstable` (Debian unstable)
#### **Package Type**
- **bootc-deb**: Rust binary packages
- **deb-mock**: Python packages with dh-python
- **mock**: Python packages with dh-python
#### **Build Process**
- **bootc-deb**: `cargo build` + `dpkg-buildpackage`
- **deb-mock**: `pip install` + `dpkg-buildpackage`
- **mock**: `pip install` + `dpkg-buildpackage`
## Setup Requirements
@ -113,11 +113,11 @@ Users can install packages from the registry:
```bash
# Add the repository
wget -O - https://git.raines.xyz/api/packages/robojerk/debian/gpg.key | sudo apt-key add -
echo 'deb [signed-by=/usr/share/keyrings/forgejo-robojerk.gpg] https://git.raines.xyz/api/packages/robojerk/debian unstable main' | sudo tee /etc/apt/sources.list.d/deb-mock.list
echo 'deb [signed-by=/usr/share/keyrings/forgejo-robojerk.gpg] https://git.raines.xyz/api/packages/robojerk/debian unstable main' | sudo tee /etc/apt/sources.list.d/mock.list
sudo apt update
# Install deb-mock
sudo apt install -y deb-mock
# Install mock
sudo apt install -y mock
```
### 3. Package Location