Skip to content

Commit a7b5463

Browse files
dpsoftclaude
andcommitted
fix(ci): strip v prefix for deb/rpm version, pass ARCH to guest image build
- nfpm.yaml: remove hardcoded v prefix from version field - release.yml: strip v prefix with ${VERSION#v} for nfpm - build_release_artifacts.sh: pass ARCH to build_guest_image.sh so aarch64 jobs don't default to x86_64 on the runner Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1e0c791 commit a7b5463

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ jobs:
7777
7878
- name: Build .deb package
7979
run: |
80-
VERSION="${{ github.ref_name }}" ARCH="${{ matrix.arch }}" \
80+
VERSION="${VERSION#v}" ARCH="$ARCH" \
8181
nfpm package --packager deb --target target/release-artifacts/${{ github.ref_name }}/
8282
env:
8383
VERSION: ${{ github.ref_name }}
8484
ARCH: ${{ matrix.arch }}
8585

8686
- name: Build .rpm package
8787
run: |
88-
VERSION="${{ github.ref_name }}" ARCH="${{ matrix.arch }}" \
88+
VERSION="${VERSION#v}" ARCH="$ARCH" \
8989
nfpm package --packager rpm --target target/release-artifacts/${{ github.ref_name }}/
9090
env:
9191
VERSION: ${{ github.ref_name }}

nfpm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
name: voidbox
1313
arch: "${ARCH}"
14-
version: "v${VERSION}"
14+
version: "${VERSION}"
1515
maintainer: "Diego Parra <diegolparra@gmail.com>"
1616
description: "Composable workflow sandbox with KVM micro-VMs and native observability"
1717
homepage: "https://github.com/the-void-ia/void-box"

scripts/build_release_artifacts.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ echo "[void-box] Guest agent built: $RELEASE_DIR/guest-agent-${ARCH}"
4949
# ── 3. Build initramfs ──────────────────────────────────────────────────────
5050

5151
echo "[void-box] Building initramfs..."
52+
ARCH="$ARCH" \
5253
OUT_DIR="$RELEASE_DIR/rootfs-tmp" \
5354
OUT_CPIO="$RELEASE_DIR/void-box-initramfs-${VERSION}-${ARCH}.cpio.gz" \
5455
./scripts/build_guest_image.sh

0 commit comments

Comments
 (0)