Simplify CI workflow to match debian-forge approach
All checks were successful
Comprehensive CI/CD Pipeline / Build and Test (push) Successful in 1m30s
Comprehensive CI/CD Pipeline / Security Audit (push) Successful in 42s
Comprehensive CI/CD Pipeline / Package Validation (push) Successful in 57s
Comprehensive CI/CD Pipeline / Status Report (push) Successful in 16s
All checks were successful
Comprehensive CI/CD Pipeline / Build and Test (push) Successful in 1m30s
Comprehensive CI/CD Pipeline / Security Audit (push) Successful in 42s
Comprehensive CI/CD Pipeline / Package Validation (push) Successful in 57s
Comprehensive CI/CD Pipeline / Status Report (push) Successful in 16s
- Use simple '*.deb' pattern instead of 'mock_*.deb' for package detection - Simplify artifact preparation and publishing sections - Remove complex package name validation - Follow debian-forge's proven pattern for multi-package uploads This should resolve the remaining CI issues and ensure all 6 packages are properly detected, copied, and published to the Forgejo registry.
This commit is contained in:
parent
9c2731fe5a
commit
2f61425f77
1 changed files with 10 additions and 11 deletions
|
|
@ -270,16 +270,16 @@ jobs:
|
|||
mkdir -p artifacts
|
||||
|
||||
# Copy all built packages
|
||||
if ls mock_*.deb >/dev/null 2>&1; then
|
||||
if ls *.deb >/dev/null 2>&1; then
|
||||
echo "📦 Copying Debian packages to artifacts directory..."
|
||||
cp mock_*.deb artifacts/
|
||||
cp *.deb artifacts/
|
||||
echo "✅ Packages copied:"
|
||||
ls -la artifacts/mock_*.deb
|
||||
ls -la artifacts/*.deb
|
||||
|
||||
# Show package details
|
||||
echo ""
|
||||
echo "📋 Package Details:"
|
||||
for pkg in artifacts/mock_*.deb; do
|
||||
for pkg in artifacts/*.deb; do
|
||||
PKG_NAME=$(dpkg-deb -f "$pkg" Package 2>/dev/null || echo "Unknown")
|
||||
PKG_VERSION=$(dpkg-deb -f "$pkg" Version 2>/dev/null || echo "Unknown")
|
||||
PKG_ARCH=$(dpkg-deb -f "$pkg" Architecture 2>/dev/null || echo "Unknown")
|
||||
|
|
@ -309,9 +309,9 @@ jobs:
|
|||
echo "## Available Artifacts" >> artifacts/ARTIFACTS.md
|
||||
echo "" >> artifacts/ARTIFACTS.md
|
||||
|
||||
if ls artifacts/mock_*.deb >/dev/null 2>&1; then
|
||||
if ls artifacts/*.deb >/dev/null 2>&1; then
|
||||
echo "### Debian Packages" >> artifacts/ARTIFACTS.md
|
||||
for pkg in artifacts/mock_*.deb; do
|
||||
for pkg in artifacts/*.deb; do
|
||||
PKG_NAME=$(dpkg-deb -f "$pkg" Package 2>/dev/null || echo "Unknown")
|
||||
PKG_VERSION=$(dpkg-deb -f "$pkg" Version 2>/dev/null || echo "Unknown")
|
||||
PKG_ARCH=$(dpkg-deb -f "$pkg" Architecture 2>/dev/null || echo "Unknown")
|
||||
|
|
@ -348,10 +348,9 @@ jobs:
|
|||
run: |
|
||||
echo "Publishing .deb packages to Forgejo Debian Registry..."
|
||||
|
||||
# .deb files are MANDATORY - fail if none exist
|
||||
if ! ls mock_*.deb >/dev/null 2>&1; then
|
||||
echo "❌ CRITICAL: No .deb files found!"
|
||||
echo "🚨 .deb packages are REQUIRED - build must fail"
|
||||
# Check if packages exist
|
||||
if ! ls *.deb >/dev/null 2>&1; then
|
||||
echo "❌ No .deb packages found!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
@ -367,7 +366,7 @@ jobs:
|
|||
FORGEJO_COMPONENT="main" # Package component
|
||||
|
||||
# Publish each .deb file
|
||||
for deb_file in mock_*.deb; do
|
||||
for deb_file in *.deb; do
|
||||
echo "📦 Publishing $deb_file..."
|
||||
|
||||
# Extract package info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue