Add release script and release notes (no artifacts)
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -62,3 +62,8 @@ go.work.sum
|
||||
|
||||
# Distribution binaries
|
||||
dist/
|
||||
|
||||
# Release artifacts
|
||||
releases/**/SHA256SUMS.txt
|
||||
releases/**/*.tar.gz
|
||||
releases/**/*.zip
|
||||
|
||||
13
releases/v1.3.0-dirty/RELEASE_NOTES.md
Normal file
13
releases/v1.3.0-dirty/RELEASE_NOTES.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# logpile v1.3.0-dirty
|
||||
|
||||
Дата релиза: 2026-02-15
|
||||
Тег: `v1.3.0-dirty`
|
||||
|
||||
## Что нового
|
||||
|
||||
- TODO: опишите ключевые изменения релиза.
|
||||
|
||||
## Запуск на macOS
|
||||
|
||||
Снимите карантинный атрибут через терминал: `xattr -d com.apple.quarantine /path/to/logpile-darwin-arm64`
|
||||
После этого бинарник запустится без предупреждения Gatekeeper.
|
||||
42
releases/v1.3.0/RELEASE_NOTES.md
Normal file
42
releases/v1.3.0/RELEASE_NOTES.md
Normal file
@@ -0,0 +1,42 @@
|
||||
# Release v1.3.0
|
||||
|
||||
Previous tag: `v1.2.1`
|
||||
Diff range: `v1.2.1..v1.3.0`
|
||||
|
||||
## Summary
|
||||
This release expands parser coverage, adds Reanimator export capabilities, and improves resilience of archive ingestion and diagnostics parsing.
|
||||
|
||||
## What's New
|
||||
- Added XigmaNAS log parser, vendor registration, and extended event parsing.
|
||||
- Added Unraid diagnostics parser and improved zip upload handling.
|
||||
- Added GPU serial number extraction for NVIDIA diagnostics.
|
||||
- Added Reanimator export format support.
|
||||
- Added integration guide and example generator.
|
||||
|
||||
## Improvements
|
||||
- Updated parser behavior and project handling.
|
||||
- Aligned Reanimator export behavior with integration guide updates.
|
||||
- Improved handling of TXT uploads.
|
||||
|
||||
## Fixes
|
||||
- Fixed NVIDIA GPU serial number format extraction.
|
||||
- Fixed NVIDIA GPU/NVSwitch parsing and Reanimator export statuses.
|
||||
- Hardened zip reader and syslog scan logic.
|
||||
- Removed unused local test/build artifacts.
|
||||
|
||||
## Commits Since `v1.2.1`
|
||||
- `5e49ada` Update parser and project changes
|
||||
- `c7b2a7a` Fix NVIDIA GPU/NVSwitch parsing and Reanimator export statuses
|
||||
- `0af3cee` Add integration guide, example generator, and built binary
|
||||
- `8715fca` Align Reanimator export with updated integration guide
|
||||
- `1b1bc74` Add Reanimator format export support
|
||||
- `77e25dd` Fix NVIDIA GPU serial number format extraction
|
||||
- `bcce975` Add GPU serial number extraction for NVIDIA diagnostics
|
||||
- `8b065c6` Harden zip reader and syslog scan
|
||||
- `aa22034` Add Unraid diagnostics parser and fix zip upload support
|
||||
- `7d9135d` Merge branch 'main' of https://git.mchus.pro/mchus/logpile
|
||||
- `80e726d` chore: remove unused local test and build artifacts
|
||||
- `92134a6` Support TXT uploads and extend XigmaNAS event parsing
|
||||
- `ae588ae` Register xigmanas vendor parser
|
||||
- `b64a8d8` Add XigmaNAS log parser and tests
|
||||
- `f9230e1` Update README and CLAUDE docs for current Redfish workflow
|
||||
102
scripts/release.sh
Executable file
102
scripts/release.sh
Executable file
@@ -0,0 +1,102 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# logpile Release Build Script
|
||||
# Creates binaries for selected platforms and packages them for release
|
||||
|
||||
# Colors
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[1;33m'
|
||||
NC='\033[0m' # No Color
|
||||
|
||||
# Get version from git
|
||||
VERSION=$(git describe --tags --always --dirty 2>/dev/null || echo "dev")
|
||||
if [[ $VERSION == *"dirty"* ]] && [[ "${ALLOW_DIRTY}" != "1" ]]; then
|
||||
echo -e "${RED}Error: Working directory has uncommitted changes${NC}"
|
||||
echo "Commit your changes first (or run with ALLOW_DIRTY=1)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo -e "${GREEN}Building logpile version: ${VERSION}${NC}"
|
||||
echo ""
|
||||
|
||||
# Stable build env for this machine/toolchain
|
||||
export GOPATH="${GOPATH:-/tmp/go}"
|
||||
export GOCACHE="${GOCACHE:-/tmp/gocache}"
|
||||
export GOTOOLCHAIN="${GOTOOLCHAIN:-go1.22.12}"
|
||||
mkdir -p "${GOPATH}" "${GOCACHE}"
|
||||
|
||||
# Create release directory
|
||||
RELEASE_DIR="releases/${VERSION}"
|
||||
mkdir -p "${RELEASE_DIR}"
|
||||
|
||||
# Create release notes template (always include macOS Gatekeeper note)
|
||||
if [ ! -f "${RELEASE_DIR}/RELEASE_NOTES.md" ]; then
|
||||
cat > "${RELEASE_DIR}/RELEASE_NOTES.md" <<EON
|
||||
# logpile ${VERSION}
|
||||
|
||||
Дата релиза: $(date +%Y-%m-%d)
|
||||
Тег: \`${VERSION}\`
|
||||
|
||||
## Что нового
|
||||
|
||||
- TODO: опишите ключевые изменения релиза.
|
||||
|
||||
## Запуск на macOS
|
||||
|
||||
Снимите карантинный атрибут через терминал: \`xattr -d com.apple.quarantine /path/to/logpile-darwin-arm64\`
|
||||
После этого бинарник запустится без предупреждения Gatekeeper.
|
||||
EON
|
||||
fi
|
||||
|
||||
# Build selected platforms
|
||||
echo -e "${YELLOW}Building binaries...${NC}"
|
||||
mkdir -p bin
|
||||
|
||||
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 \
|
||||
go build -ldflags "-X main.version=${VERSION} -X main.commit=$(git rev-parse --short HEAD)" \
|
||||
-o bin/logpile-darwin-arm64 ./cmd/logpile
|
||||
|
||||
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 \
|
||||
go build -ldflags "-X main.version=${VERSION} -X main.commit=$(git rev-parse --short HEAD)" \
|
||||
-o bin/logpile-windows-amd64.exe ./cmd/logpile
|
||||
|
||||
echo ""
|
||||
echo -e "${YELLOW}Creating release packages...${NC}"
|
||||
|
||||
# macOS Apple Silicon
|
||||
if [ -f "bin/logpile-darwin-arm64" ]; then
|
||||
cd bin
|
||||
tar -czf "../${RELEASE_DIR}/logpile-${VERSION}-darwin-arm64.tar.gz" logpile-darwin-arm64
|
||||
cd ..
|
||||
echo -e "${GREEN} logpile-${VERSION}-darwin-arm64.tar.gz${NC}"
|
||||
fi
|
||||
|
||||
# Windows AMD64
|
||||
if [ -f "bin/logpile-windows-amd64.exe" ]; then
|
||||
cd bin
|
||||
zip -q "../${RELEASE_DIR}/logpile-${VERSION}-windows-amd64.zip" logpile-windows-amd64.exe
|
||||
cd ..
|
||||
echo -e "${GREEN} logpile-${VERSION}-windows-amd64.zip${NC}"
|
||||
fi
|
||||
|
||||
# Generate checksums
|
||||
echo ""
|
||||
echo -e "${YELLOW}Generating checksums...${NC}"
|
||||
cd "${RELEASE_DIR}"
|
||||
shasum -a 256 *.tar.gz *.zip > SHA256SUMS.txt 2>/dev/null || shasum -a 256 * | grep -v SHA256SUMS > SHA256SUMS.txt
|
||||
cd ../..
|
||||
echo -e "${GREEN} SHA256SUMS.txt${NC}"
|
||||
|
||||
# List release files
|
||||
echo ""
|
||||
echo -e "${GREEN}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
|
||||
echo -e "${GREEN}Release ${VERSION} built successfully!${NC}"
|
||||
echo -e "${GREEN}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
|
||||
echo ""
|
||||
echo "Files in ${RELEASE_DIR}:"
|
||||
ls -lh "${RELEASE_DIR}"
|
||||
echo ""
|
||||
|
||||
echo -e "${GREEN}Done!${NC}"
|
||||
Reference in New Issue
Block a user