chore: remove Forgejo Actions workflow — cron is primary for now

Forgejo runner adds complexity before build.sh is working.
Workflow file (runner/README.md) kept for when CI/CD is needed.
Cron job documented in runner/README.md as the active automation path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Sam & Claude 2026-03-17 11:24:50 +00:00 committed by 123kupola
parent 2f65567c85
commit 9cf8eab9ff

View file

@ -1,73 +0,0 @@
name: Build Clawdie ISO
# Triggers:
# - Push to main (fresh build on every change)
# - Weekly Sunday 03:00 UTC (catches upstream pkg updates)
# - Manual dispatch (with optional overrides)
on:
push:
branches: [main]
schedule:
- cron: '0 3 * * 0'
workflow_dispatch:
inputs:
clawdie_version:
description: 'Clawdie-AI version to bundle (default: latest tag)'
required: false
default: ''
skip_fetch:
description: 'Skip package fetch — use runner cache'
type: boolean
default: false
jobs:
build:
runs-on: [self-hosted, freebsd]
timeout-minutes: 180
steps:
- name: Checkout
uses: actions/checkout@v4
# Step 1 — fetch packages (runs as normal user, no root needed)
# Packages are cached on the runner between runs.
# Weekly trigger always re-fetches to pick up upstream updates.
- name: Fetch packages
if: ${{ !inputs.skip_fetch || github.event_name == 'schedule' }}
run: ./build.sh --fetch-only
# Step 2 — assemble ISO (needs root for mdconfig/mount)
- name: Build ISO
run: sudo ./build.sh --skip-fetch ${{ inputs.clawdie_version && format('--clawdie-version {0}', inputs.clawdie_version) || '' }}
# Step 3a — publish to local CMS nginx downloads (primary)
# Runner is on the controlplane, direct copy to jail webroot.
- name: Publish to CMS downloads
if: github.ref == 'refs/heads/main'
run: sudo ./scripts/publish.sh
# Step 3b — create Codeberg release entry (metadata only, not the image)
# The ISO is too large to upload as a release artifact.
# Release entry contains: version, date, checksum, local download URL.
- name: Create release entry
if: github.ref == 'refs/heads/main'
uses: actions/forgejo-release@v2
with:
direction: upload
release-dir: release-meta/
token: ${{ secrets.FORGEJO_TOKEN }}
tag: build-${{ github.run_number }}
release-notes: |
Automated build from commit ${{ github.sha }}
Download: https://${{ secrets.AGENT_DOMAIN }}/downloads/clawdie-iso-latest.img
# Step 4 — upload packages/ repo as workflow artifact (pkg cache seed)
# This artifact can be downloaded and used to seed zroot/pkg-cache
# on a running Clawdie system without building a full ISO.
- name: Upload pkg cache artifact
uses: actions/upload-artifact@v4
with:
name: pkg-cache-${{ github.run_number }}
path: packages/
retention-days: 90