rename binary from deb-mock to mock - update package name, entry points, and all references
This commit is contained in:
parent
20947d240e
commit
b5eb266f80
8 changed files with 104 additions and 99 deletions
|
|
@ -72,30 +72,30 @@ jobs:
|
|||
# Build the package
|
||||
dpkg-buildpackage -us -uc -b
|
||||
|
||||
# List built packages (handle missing .dsc file)
|
||||
echo "Built packages:"
|
||||
ls -la ../*.deb ../*.changes 2>/dev/null || true
|
||||
ls -la ../*.dsc 2>/dev/null || echo "No .dsc file (binary-only package)"
|
||||
# List built packages (handle missing .dsc file)
|
||||
echo "Built packages:"
|
||||
ls -la ../mock_*.deb ../mock_*.changes 2>/dev/null || true
|
||||
ls -la ../mock_*.dsc 2>/dev/null || echo "No .dsc file (binary-only package)"
|
||||
|
||||
- name: Upload build artifacts
|
||||
run: |
|
||||
echo "Debian package artifacts:"
|
||||
ls -la ../*.deb ../*.changes 2>/dev/null || true
|
||||
ls -la ../*.dsc 2>/dev/null || echo "No .dsc file (binary-only package)"
|
||||
ls -la ../mock_*.deb ../mock_*.changes 2>/dev/null || true
|
||||
ls -la ../mock_*.dsc 2>/dev/null || echo "No .dsc file (binary-only package)"
|
||||
echo "Package contents:"
|
||||
dpkg -c ../deb-mock_*.deb || true
|
||||
dpkg -c ../mock_*.deb || true
|
||||
|
||||
- name: Create release assets
|
||||
run: |
|
||||
mkdir -p release-assets
|
||||
cp ../deb-mock_*.deb release-assets/ 2>/dev/null || echo "No .deb files found"
|
||||
cp ../deb-mock_*.changes release-assets/ 2>/dev/null || echo "No .changes files found"
|
||||
cp ../mock_*.deb release-assets/ 2>/dev/null || echo "No .deb files found"
|
||||
cp ../mock_*.changes release-assets/ 2>/dev/null || echo "No .changes files found"
|
||||
|
||||
# Create a summary file
|
||||
echo "Deb-Mock Package Build Summary" > release-assets/BUILD_SUMMARY.txt
|
||||
echo "===============================" >> release-assets/BUILD_SUMMARY.txt
|
||||
echo "Mock Package Build Summary" > release-assets/BUILD_SUMMARY.txt
|
||||
echo "==========================" >> release-assets/BUILD_SUMMARY.txt
|
||||
echo "Build Date: $(date)" >> release-assets/BUILD_SUMMARY.txt
|
||||
echo "Package: deb-mock" >> release-assets/BUILD_SUMMARY.txt
|
||||
echo "Package: mock" >> release-assets/BUILD_SUMMARY.txt
|
||||
echo "Version: $VERSION" >> release-assets/BUILD_SUMMARY.txt
|
||||
echo "" >> release-assets/BUILD_SUMMARY.txt
|
||||
echo "Built Packages:" >> release-assets/BUILD_SUMMARY.txt
|
||||
|
|
@ -123,9 +123,9 @@ jobs:
|
|||
|
||||
# List packages for upload
|
||||
echo "Built packages:"
|
||||
ls -la ../*.deb 2>/dev/null || echo "No .deb files found"
|
||||
ls -la ../mock_*.deb 2>/dev/null || echo "No .deb files found"
|
||||
|
||||
for deb_file in ../deb-mock_*.deb; do
|
||||
for deb_file in ../mock_*.deb; do
|
||||
if [ -f "$deb_file" ]; then
|
||||
echo "Uploading $deb_file to Forgejo Debian Package Registry..."
|
||||
filename=$(basename "$deb_file")
|
||||
|
|
@ -158,7 +158,7 @@ jobs:
|
|||
if: startsWith(github.ref, 'refs/tags/')
|
||||
run: |
|
||||
echo "=== Upload Summary ==="
|
||||
echo "✅ Deb-Mock package uploaded successfully to Forgejo Debian Package Registry"
|
||||
echo "✅ Mock package uploaded successfully to Forgejo Debian Package Registry"
|
||||
echo "✅ Package automatically assigned to repository by Forgejo"
|
||||
echo ""
|
||||
echo "📦 Package should now be available at:"
|
||||
|
|
@ -167,7 +167,7 @@ jobs:
|
|||
echo "🎯 Next steps:"
|
||||
echo " - Verify package appears in repository packages page"
|
||||
echo " - Test package installation on Debian/Ubuntu systems"
|
||||
echo " - Users can install with: sudo apt install deb-mock"
|
||||
echo " - Users can install with: sudo apt install mock"
|
||||
|
||||
- name: Setup Debian repository
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
|
|
@ -201,7 +201,7 @@ jobs:
|
|||
if: startsWith(github.ref, 'refs/tags/')
|
||||
run: |
|
||||
# Add the package to the repository
|
||||
reprepro -b debian-repo includedeb unstable ../deb-mock_*.deb
|
||||
reprepro -b debian-repo includedeb unstable ../mock_*.deb
|
||||
|
||||
# List repository contents
|
||||
reprepro -b debian-repo list unstable
|
||||
|
|
|
|||
|
|
@ -34,6 +34,11 @@ jobs:
|
|||
|
||||
- name: Install system dependencies
|
||||
run: |
|
||||
# Configure APT to use your cache server
|
||||
echo 'Acquire::http::Proxy "http://192.168.1.79:3142";' | sudo tee /etc/apt/apt.conf.d/99proxy
|
||||
echo 'Acquire::https::Proxy "http://192.168.1.79:3142";' | sudo tee -a /etc/apt/apt.conf.d/99proxy
|
||||
|
||||
sudo apt update
|
||||
sudo apt install -y sbuild schroot debootstrap
|
||||
|
||||
- name: Create deb-mock directories
|
||||
|
|
@ -61,63 +66,63 @@ jobs:
|
|||
- name: Test CLI interface
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
deb-mock --help
|
||||
deb-mock --version
|
||||
mock --help
|
||||
mock --version
|
||||
|
||||
- name: Test configuration system
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
deb-mock debug-config
|
||||
deb-mock list-configs
|
||||
deb-mock config
|
||||
mock debug-config
|
||||
mock list-configs
|
||||
mock config
|
||||
|
||||
- name: Test package management commands
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
deb-mock install-deps --help
|
||||
deb-mock install --help
|
||||
deb-mock update --help
|
||||
deb-mock remove --help
|
||||
deb-mock apt --help
|
||||
mock install-deps --help
|
||||
mock install --help
|
||||
mock update --help
|
||||
mock remove --help
|
||||
mock apt --help
|
||||
|
||||
- name: Test advanced build options
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
deb-mock build --help
|
||||
mock build --help
|
||||
|
||||
- name: Test chroot management
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
deb-mock list-chroots
|
||||
deb-mock list-configs
|
||||
mock list-chroots
|
||||
mock list-configs
|
||||
|
||||
- name: Test file operations
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
deb-mock copyin --help
|
||||
deb-mock copyout --help
|
||||
mock copyin --help
|
||||
mock copyout --help
|
||||
|
||||
- name: Test shell access
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
deb-mock shell --help
|
||||
mock shell --help
|
||||
|
||||
- name: Test cache management
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
deb-mock cache-stats
|
||||
deb-mock cleanup-caches --help
|
||||
mock cache-stats
|
||||
mock cleanup-caches --help
|
||||
|
||||
- name: Test chain building
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
deb-mock chain --help
|
||||
mock chain --help
|
||||
|
||||
- name: Test custom configuration
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
deb-mock -c test-config.yaml debug-config
|
||||
deb-mock -c test-config.yaml config
|
||||
mock -c test-config.yaml debug-config
|
||||
mock -c test-config.yaml config
|
||||
|
||||
- name: Run unit tests
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue