fix: correct Alpine version bug and add Ubuntu 24.04 package suffix
- 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:
@ -185,6 +185,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
TAG_NAME=${GITHUB_REF#refs/tags/}
|
TAG_NAME=${GITHUB_REF#refs/tags/}
|
||||||
FILE=$(ls ../linux-patch-api_*.deb 2>/dev/null | head -1)
|
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
|
chmod +x scripts/upload-release.sh
|
||||||
./scripts/upload-release.sh "$TAG_NAME" "$FILE"
|
./scripts/upload-release.sh "$TAG_NAME" "$FILE"
|
||||||
|
|
||||||
@ -318,19 +324,23 @@ jobs:
|
|||||||
- name: Clean stale Alpine packages
|
- name: Clean stale Alpine packages
|
||||||
run: |
|
run: |
|
||||||
rm -f releases/linux-patch-api-*.apk 2>/dev/null || true
|
rm -f releases/linux-patch-api-*.apk 2>/dev/null || true
|
||||||
|
rm -rf /home/builduser/packages/ 2>/dev/null || true
|
||||||
- name: Build Alpine package
|
- name: Build Alpine package
|
||||||
run: |
|
run: |
|
||||||
chmod +x build-alpine.sh
|
chmod +x build-alpine.sh
|
||||||
SKIP_CARGO_BUILD=1 ./build-alpine.sh
|
SKIP_CARGO_BUILD=1 ./build-alpine.sh
|
||||||
- name: Upload to Gitea Release
|
- name: Verify Alpine package
|
||||||
if: github.ref_type == 'tag'
|
|
||||||
env:
|
|
||||||
GITEA_TOKEN: ${{ secrets.GITEATOKEN }}
|
|
||||||
run: |
|
run: |
|
||||||
TAG_NAME=${GITHUB_REF#refs/tags/}
|
EXPECTED_VERSION=$(grep '^version' Cargo.toml | head -1 | sed 's/.*=.*"\([^"]*\)".*/\1/')
|
||||||
FILE=$(ls releases/*.apk 2>/dev/null | head -1)
|
FILE=$(ls releases/linux-patch-api-*.apk 2>/dev/null | head -1)
|
||||||
chmod +x scripts/upload-release.sh
|
if [ -z "$FILE" ]; then
|
||||||
./scripts/upload-release.sh "$TAG_NAME" "$FILE"
|
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:
|
build-arch:
|
||||||
name: Build Arch Package
|
name: Build Arch Package
|
||||||
|
|||||||
@ -10,7 +10,8 @@ echo ""
|
|||||||
|
|
||||||
# Clean stale packages from previous builds
|
# Clean stale packages from previous builds
|
||||||
rm -f releases/linux-patch-api-*.apk 2>/dev/null || true
|
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)
|
# Source cargo environment (for rustup-installed toolchain in CI)
|
||||||
if [ -f "$HOME/.cargo/env" ]; then
|
if [ -f "$HOME/.cargo/env" ]; then
|
||||||
|
|||||||
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -187,11 +187,4 @@ linux-patch-api (0.3.2-1) unstable; urgency=low
|
|||||||
* Bump version to 0.3.2
|
* Bump version to 0.3.2
|
||||||
|
|
||||||
-- Echo <echo@moon-dragon.us> Fri, 02 May 2026 21:30:00 -0500
|
-- 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
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user