🔧 Fix YAML syntax error - Replace problematic heredoc
- ❌ Fix syntax error on line 117 (could not find expected ':') - 🔄 Replace EOF heredoc with individual echo commands - ✅ YAML now passes syntax validation - 📝 Line length warnings remain (non-critical formatting) - 🎯 Target: Resolve YAML syntax issues that could cause CI failures
This commit is contained in:
parent
079e67e9ac
commit
0cd7ca2703
1 changed files with 30 additions and 31 deletions
|
|
@ -1,10 +1,11 @@
|
||||||
|
---
|
||||||
name: Comprehensive CI/CD Pipeline
|
name: Comprehensive CI/CD Pipeline
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main, develop ]
|
branches: [main, develop]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [main]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|
@ -39,7 +40,7 @@ jobs:
|
||||||
echo "deb-src http://192.168.1.101:3142/ftp.debian.org/debian trixie main contrib non-free" >> /etc/apt/sources.list.d/apt-cacher-ng.list
|
echo "deb-src http://192.168.1.101:3142/ftp.debian.org/debian trixie main contrib non-free" >> /etc/apt/sources.list.d/apt-cacher-ng.list
|
||||||
apt update -y
|
apt update -y
|
||||||
else
|
else
|
||||||
echo "⚠️ apt-cacher-ng not available, using standard Debian sources..."
|
echo "⚠️ apt-cacher-ng not available, using standard Debian sources..."
|
||||||
echo "deb http://deb.debian.org/debian trixie main contrib non-free" > /etc/apt/sources.list.d/standard.list
|
echo "deb http://deb.debian.org/debian trixie main contrib non-free" > /etc/apt/sources.list.d/standard.list
|
||||||
echo "deb-src http://deb.debian.org/debian trixie main contrib non-free" >> /etc/apt/sources.list.d/standard.list
|
echo "deb-src http://deb.debian.org/debian trixie main contrib non-free" >> /etc/apt/sources.list.d/standard.list
|
||||||
apt update -y
|
apt update -y
|
||||||
|
|
@ -103,15 +104,13 @@ jobs:
|
||||||
|
|
||||||
# Create control file
|
# Create control file
|
||||||
mkdir -p debian/apt-ostree/DEBIAN
|
mkdir -p debian/apt-ostree/DEBIAN
|
||||||
cat > debian/apt-ostree/DEBIAN/control << 'EOF'
|
echo "Package: apt-ostree" > debian/apt-ostree/DEBIAN/control
|
||||||
Package: apt-ostree
|
echo "Version: 0.1.0" >> debian/apt-ostree/DEBIAN/control
|
||||||
Version: 0.1.0
|
echo "Architecture: amd64" >> debian/apt-ostree/DEBIAN/control
|
||||||
Architecture: amd64
|
echo "Maintainer: Robojerk <robojerk@example.com>" >> debian/apt-ostree/DEBIAN/control
|
||||||
Maintainer: Robojerk <robojerk@example.com>
|
echo "Description: APT-OSTree package for Debian-based OSTree systems" >> debian/apt-ostree/DEBIAN/control
|
||||||
Description: APT-OSTree package for Debian-based OSTree systems
|
echo " A tool for managing OSTree deployments with APT package management." >> debian/apt-ostree/DEBIAN/control
|
||||||
A tool for managing OSTree deployments with APT package management.
|
echo " Provides atomic updates and rollback capabilities for Debian systems." >> debian/apt-ostree/DEBIAN/control
|
||||||
Provides atomic updates and rollback capabilities for Debian systems.
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Build package
|
# Build package
|
||||||
dpkg-deb --build debian/apt-ostree apt-ostree_0.1.0_amd64.deb
|
dpkg-deb --build debian/apt-ostree apt-ostree_0.1.0_amd64.deb
|
||||||
|
|
@ -224,7 +223,7 @@ EOF
|
||||||
echo "deb-src http://192.168.1.101:3142/ftp.debian.org/debian trixie main contrib non-free" >> /etc/apt/sources.list.d/apt-cacher-ng.list
|
echo "deb-src http://192.168.1.101:3142/ftp.debian.org/debian trixie main contrib non-free" >> /etc/apt/sources.list.d/apt-cacher-ng.list
|
||||||
apt update -y
|
apt update -y
|
||||||
else
|
else
|
||||||
echo "⚠️ apt-cacher-ng not available, using standard Debian sources..."
|
echo "⚠️ apt-cacher-ng not available, using standard Debian sources..."
|
||||||
echo "deb http://deb.debian.org/debian trixie main contrib non-free" > /etc/apt/sources.list.d/standard.list
|
echo "deb http://deb.debian.org/debian trixie main contrib non-free" > /etc/apt/sources.list.d/standard.list
|
||||||
echo "deb-src http://deb.debian.org/debian trixie main contrib non-free" >> /etc/apt/sources.list.d/standard.list
|
echo "deb-src http://deb.debian.org/debian trixie main contrib non-free" >> /etc/apt/sources.list.d/standard.list
|
||||||
apt update -y
|
apt update -y
|
||||||
|
|
@ -268,7 +267,7 @@ EOF
|
||||||
echo "deb-src http://192.168.1.101:3142/ftp.debian.org/debian trixie main contrib non-free" >> /etc/apt/sources.list.d/apt-cacher-ng.list
|
echo "deb-src http://192.168.1.101:3142/ftp.debian.org/debian trixie main contrib non-free" >> /etc/apt/sources.list.d/apt-cacher-ng.list
|
||||||
apt update -y
|
apt update -y
|
||||||
else
|
else
|
||||||
echo "⚠️ apt-cacher-ng not available, using standard Debian sources..."
|
echo "⚠️ apt-cacher-ng not available, using standard Debian sources..."
|
||||||
echo "deb http://deb.debian.org/debian trixie main contrib non-free" > /etc/apt/sources.list.d/standard.list
|
echo "deb http://deb.debian.org/debian trixie main contrib non-free" > /etc/apt/sources.list.d/standard.list
|
||||||
echo "deb-src http://deb.debian.org/debian trixie main contrib non-free" >> /etc/apt/sources.list.d/standard.list
|
echo "deb-src http://deb.debian.org/debian trixie main contrib non-free" >> /etc/apt/sources.list.d/standard.list
|
||||||
apt update -y
|
apt update -y
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue