Private
Public Access
1
0

fix: correct Alpine version bug and add Ubuntu 24.04 package suffix
Some checks failed
CI/CD Pipeline / Code Format (push) Successful in 2s
CI/CD Pipeline / Clippy Lints (push) Successful in 49s
CI/CD Pipeline / All Unit Tests (push) Successful in 1m21s
CI/CD Pipeline / Security Audit (push) Successful in 5s
CI/CD Pipeline / Enrollment Tests (push) Successful in 1m57s
CI/CD Pipeline / Verify Enrollment CLI Flag (push) Successful in 1m29s
CI/CD Pipeline / Build RPM Package (push) Successful in 2m33s
CI/CD Pipeline / Build Arch Package (push) Successful in 2m57s
CI/CD Pipeline / Build Debian Package (Ubuntu 22.04) (push) Successful in 2m40s
CI/CD Pipeline / Build Alpine Package (push) Failing after 3m37s
CI/CD Pipeline / Build Debian Package (push) Successful in 2m7s

- Alpine: clean entire /home/builduser/packages/ before abuild (not just releases/)
- Alpine: add version verification step to CI (like RPM already has)
- Alpine: upload uses exact version match instead of head -1
- Debian: add u2404 suffix to build-deb output filename
- Remove duplicate 1.1.12 entry from debian/changelog
This commit is contained in:
2026-05-27 19:58:35 -05:00
parent e738da3c0a
commit 387f9be387
3 changed files with 20 additions and 16 deletions

View File

@ -185,6 +185,12 @@ jobs:
run: |
TAG_NAME=${GITHUB_REF#refs/tags/}
FILE=$(ls ../linux-patch-api_*.deb 2>/dev/null | head -1)
# Rename deb to include u2404 in filename to distinguish from u2204 build
if [ -n "$FILE" ]; then
U2404_FILE="$(echo "$FILE" | sed 's/_amd64/_u2404_amd64/')"
mv "$FILE" "$U2404_FILE"
FILE="$U2404_FILE"
fi
chmod +x scripts/upload-release.sh
./scripts/upload-release.sh "$TAG_NAME" "$FILE"
@ -318,19 +324,23 @@ jobs:
- name: Clean stale Alpine packages
run: |
rm -f releases/linux-patch-api-*.apk 2>/dev/null || true
rm -rf /home/builduser/packages/ 2>/dev/null || true
- name: Build Alpine package
run: |
chmod +x build-alpine.sh
SKIP_CARGO_BUILD=1 ./build-alpine.sh
- name: Upload to Gitea Release
if: github.ref_type == 'tag'
env:
GITEA_TOKEN: ${{ secrets.GITEATOKEN }}
- name: Verify Alpine package
run: |
TAG_NAME=${GITHUB_REF#refs/tags/}
FILE=$(ls releases/*.apk 2>/dev/null | head -1)
chmod +x scripts/upload-release.sh
./scripts/upload-release.sh "$TAG_NAME" "$FILE"
EXPECTED_VERSION=$(grep '^version' Cargo.toml | head -1 | sed 's/.*=.*"\([^"]*\)".*/\1/')
FILE=$(ls releases/linux-patch-api-*.apk 2>/dev/null | head -1)
if [ -z "$FILE" ]; then
echo "ERROR: No Alpine package found!"
exit 1
fi
echo "Expected version: $EXPECTED_VERSION"
echo "Package file: $FILE"
# Verify filename contains expected version
if ! echo "$FILE" | grep -q "$EXPECTED_VERSION
build-arch:
name: Build Arch Package

View File

@ -10,7 +10,8 @@ echo ""
# Clean stale packages from previous builds
rm -f releases/linux-patch-api-*.apk 2>/dev/null || true
rm -f /home/builduser/packages/home/x86_64/linux-patch-api-*.apk 2>/dev/null || true
rm -rf /home/builduser/packages/home/x86_64/ 2>/dev/null || true
rm -rf /home/builduser/packages/ 2>/dev/null || true
# Source cargo environment (for rustup-installed toolchain in CI)
if [ -f "$HOME/.cargo/env" ]; then

7
debian/changelog vendored
View File

@ -187,11 +187,4 @@ linux-patch-api (0.3.2-1) unstable; urgency=low
* Bump version to 0.3.2
-- Echo <echo@moon-dragon.us> Fri, 02 May 2026 21:30:00 -0500
linux-patch-api (1.1.12) unstable; urgency=medium
* Add APK (Alpine Linux) package manager backend
* Add machine-id generation to Alpine pre-install script
* Fix OpenRC init script ownership (root:root)
-- Echo <echo@moon-dragon.us> Tue, 20 May 2026 12:25:00 -0500