feature test

This commit is contained in:
paltovkone
2026-03-09 22:32:27 +04:00
parent d3e337c815
commit 40e4952711
3 changed files with 18 additions and 21 deletions

View File

@ -3,11 +3,11 @@ set -euo pipefail
apt-get update -qq
apt-get install -y --no-install-recommends curl ca-certificates gnupg unzip wget
# goreleaser repo → nfpm
curl -fsSL https://repo.goreleaser.com/apt/gpg.key | gpg --dearmor -o /usr/share/keyrings/goreleaser.gpg
echo "deb [signed-by=/usr/share/keyrings/goreleaser.gpg] https://repo.goreleaser.com/apt/ stable main" \
> /etc/apt/sources.list.d/goreleaser.list
# Получаем последнюю версию автоматически
NFPM_VERSION=$(curl -fsSL https://api.github.com/repos/goreleaser/nfpm/releases/latest \
| grep '"tag_name"' | sed 's/.*"v\([^"]*\)".*/\1/')
curl -fsSL "https://github.com/goreleaser/nfpm/releases/download/v${NFPM_VERSION}/nfpm_${NFPM_VERSION}_Linux_x86_64.tar.gz" \
| tar -xz -C /usr/local/bin nfpm
apt-get update -qq
apt-get install -y nfpm
echo "✓ nfpm $(nfpm --version)"