feat(ci): Rebrand VM appliance to C3Box

- Rename workflow to "Build C3Box VM Appliance"
- Update hostname to 'c3box'
- New ASCII banner with C3Box branding
- Update artifact names: c3box-vm-{version}-{arch}
- Update all documentation and release notes
- Config files now in /etc/c3box/

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2026-03-17 18:54:46 +01:00
parent d8f8d04110
commit 4fa322d1fd

View File

@ -1,6 +1,6 @@
name: Build SecuBox VM Appliance name: Build C3Box VM Appliance
# Builds ready-to-use VM images (VMDK, VDI, QCOW2) for VMware, VirtualBox, Proxmox # Builds ready-to-use C3Box VM images (VMDK, VDI, QCOW2) for VMware, VirtualBox, Proxmox
on: on:
workflow_dispatch: workflow_dispatch:
@ -104,15 +104,15 @@ jobs:
- name: Create preseed configuration - name: Create preseed configuration
run: | run: |
mkdir -p imagebuilder/files/etc/uci-defaults mkdir -p imagebuilder/files/etc/uci-defaults
mkdir -p imagebuilder/files/etc/secubox mkdir -p imagebuilder/files/etc/c3box
# Preseed script for first boot # Preseed script for first boot
cat > imagebuilder/files/etc/uci-defaults/99-secubox-vm << 'PRESEED_EOF' cat > imagebuilder/files/etc/uci-defaults/99-c3box-vm << 'PRESEED_EOF'
#!/bin/sh #!/bin/sh
# SecuBox VM Appliance Preseed # C3Box VM Appliance Preseed
# Set hostname # Set hostname
uci set system.@system[0].hostname='secubox-vm' uci set system.@system[0].hostname='c3box'
uci set system.@system[0].timezone='UTC' uci set system.@system[0].timezone='UTC'
uci set system.@system[0].zonename='UTC' uci set system.@system[0].zonename='UTC'
@ -166,23 +166,23 @@ jobs:
resize2fs "$ROOT_DEV" 2>/dev/null || true resize2fs "$ROOT_DEV" 2>/dev/null || true
fi fi
mkdir -p /etc/secubox mkdir -p /etc/c3box
touch /etc/secubox/resized touch /etc/c3box/resized
fi fi
fi fi
# Mark as configured # Mark as configured
touch /etc/secubox/configured touch /etc/c3box/configured
exit 0 exit 0
PRESEED_EOF PRESEED_EOF
chmod 755 imagebuilder/files/etc/uci-defaults/99-secubox-vm chmod 755 imagebuilder/files/etc/uci-defaults/99-c3box-vm
# SecuBox release info # C3Box release info
cat > imagebuilder/files/etc/secubox/release << EOF cat > imagebuilder/files/etc/c3box/release << EOF
SECUBOX_VERSION="${{ github.ref_name || 'dev' }}" C3BOX_VERSION="${{ github.ref_name || 'dev' }}"
SECUBOX_BUILD_DATE="$(date -u +%Y-%m-%dT%H:%M:%SZ)" C3BOX_BUILD_DATE="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
OPENWRT_VERSION="${{ env.OPENWRT_VERSION }}" OPENWRT_VERSION="${{ env.OPENWRT_VERSION }}"
VM_TYPE="${{ matrix.boot }}" VM_TYPE="${{ matrix.boot }}"
DISK_SIZE="${{ env.DISK_SIZE }}GB" DISK_SIZE="${{ env.DISK_SIZE }}GB"
@ -191,17 +191,18 @@ jobs:
# MOTD banner # MOTD banner
cat > imagebuilder/files/etc/banner << 'BANNER_EOF' cat > imagebuilder/files/etc/banner << 'BANNER_EOF'
____ ____ ██████╗██████╗ ██████╗ ██████╗ ██╗ ██╗
/ ___| ___ ___ _ _| __ ) _____ __ ██╔════╝╚════██╗██╔══██╗██╔═══██╗╚██╗██╔╝
\___ \ / _ \/ __| | | | _ \ / _ \ \/ / ██║ █████╔╝██████╔╝██║ ██║ ╚███╔╝
___) | __/ (__| |_| | |_) | (_) > < ██║ ╚═══██╗██╔══██╗██║ ██║ ██╔██╗
|____/ \___|\___|\__,_|____/ \___/_/\_\ ╚██████╗██████╔╝██████╔╝╚██████╔╝██╔╝ ██╗
╚═════╝╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝
SecuBox OpenWrt Security Appliance C3Box - CyberMind Security Appliance
https://github.com/gkerma/secubox-openwrt https://github.com/gkerma/secubox-openwrt
Access LuCI: https://192.168.1.1 Access LuCI: https://192.168.1.1
Documentation: https://github.com/gkerma/secubox-openwrt/wiki Documentation: https://github.com/gkerma/secubox-openwrt/wiki
BANNER_EOF BANNER_EOF
@ -212,7 +213,7 @@ jobs:
cd imagebuilder cd imagebuilder
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "🔨 Building SecuBox VM Image (${{ matrix.boot }})" echo "🔨 Building C3Box VM Image (${{ matrix.boot }})"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
# Base packages # Base packages
@ -312,7 +313,7 @@ jobs:
# Base filename # Base filename
VERSION="${{ env.OPENWRT_VERSION }}" VERSION="${{ env.OPENWRT_VERSION }}"
TAG="${{ github.ref_name }}" TAG="${{ github.ref_name }}"
BASENAME="secubox-vm-${TAG:-dev}-${{ matrix.name }}" BASENAME="c3box-vm-${TAG:-dev}-${{ matrix.name }}"
# Convert to VMDK (VMware) # Convert to VMDK (VMware)
echo "🔄 Creating VMDK (VMware)..." echo "🔄 Creating VMDK (VMware)..."
@ -344,12 +345,12 @@ jobs:
- name: Create documentation - name: Create documentation
run: | run: |
TAG="${{ github.ref_name }}" TAG="${{ github.ref_name }}"
BASENAME="secubox-vm-${TAG:-dev}-${{ matrix.name }}" BASENAME="c3box-vm-${TAG:-dev}-${{ matrix.name }}"
cat > artifacts/README.md << EOF cat > artifacts/README.md << EOF
# SecuBox VM Appliance - ${{ matrix.description }} # C3Box VM Appliance - ${{ matrix.description }}
Pre-configured OpenWrt ${{ env.OPENWRT_VERSION }} virtual machine with SecuBox modules. Pre-configured OpenWrt ${{ env.OPENWRT_VERSION }} virtual machine - CyberMind Security Appliance.
## VM Images ## VM Images
@ -377,7 +378,7 @@ jobs:
### Proxmox ### Proxmox
\`\`\`bash \`\`\`bash
# Upload QCOW2 to Proxmox # Upload QCOW2 to Proxmox
qm create 100 --name secubox --memory 1024 --net0 virtio,bridge=vmbr0 qm create 100 --name c3box --memory 1024 --net0 virtio,bridge=vmbr0
qm importdisk 100 ${BASENAME}.qcow2 local-lvm qm importdisk 100 ${BASENAME}.qcow2 local-lvm
qm set 100 --scsi0 local-lvm:vm-100-disk-0 qm set 100 --scsi0 local-lvm:vm-100-disk-0
qm set 100 --boot order=scsi0 qm set 100 --boot order=scsi0
@ -426,7 +427,7 @@ jobs:
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: secubox-vm-${{ matrix.name }}-${{ env.OPENWRT_VERSION }} name: c3box-vm-${{ matrix.name }}-${{ env.OPENWRT_VERSION }}
path: artifacts/ path: artifacts/
retention-days: 30 retention-days: 30
@ -458,13 +459,13 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
path: vms path: vms
pattern: secubox-vm-* pattern: c3box-vm-*
- name: Organize release - name: Organize release
run: | run: |
mkdir -p release mkdir -p release
for dir in vms/secubox-vm-*/; do for dir in vms/c3box-vm-*/; do
cp "$dir"/*.vmdk "$dir"/*.vdi "$dir"/*.qcow2 "$dir"/*.img.gz release/ 2>/dev/null || true cp "$dir"/*.vmdk "$dir"/*.vdi "$dir"/*.qcow2 "$dir"/*.img.gz release/ 2>/dev/null || true
cp "$dir"/README.md release/VM-README.md 2>/dev/null || true cp "$dir"/README.md release/VM-README.md 2>/dev/null || true
done done
@ -473,9 +474,9 @@ jobs:
sha256sum *.vmdk *.vdi *.qcow2 *.img.gz > SHA256SUMS 2>/dev/null || true sha256sum *.vmdk *.vdi *.qcow2 *.img.gz > SHA256SUMS 2>/dev/null || true
cat > RELEASE_NOTES.md << 'EOF' cat > RELEASE_NOTES.md << 'EOF'
# SecuBox VM Appliance # C3Box VM Appliance
Ready-to-use virtual machine images with SecuBox security modules pre-installed. Ready-to-use virtual machine images - CyberMind Security Appliance.
## Downloads ## Downloads
@ -503,7 +504,7 @@ jobs:
- name: Create release - name: Create release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
name: "SecuBox VM Appliance ${{ github.ref_name }}" name: "C3Box VM Appliance ${{ github.ref_name }}"
tag_name: ${{ github.ref_name }} tag_name: ${{ github.ref_name }}
body_path: release/RELEASE_NOTES.md body_path: release/RELEASE_NOTES.md
files: | files: |