furtka/.forgejo/workflows/build-iso.yml
Daniel Maksymilian Syrnicki ba36bb4741
Some checks failed
Build ISO / build-iso (push) Failing after 5s
CI / lint (push) Successful in 27s
CI / test (push) Successful in 44s
CI / markdown-links (push) Failing after 1s
CI / validate-json (push) Failing after 10m34s
ci: attach build-iso job to DinD network, pin lychee-action source
- build-iso: the job container was on a per-job docker network, so
  `docker-in-docker` (the DinD sidecar hostname on
  `forgejo-runner_default`) didn't resolve. Pin the container to that
  shared network via `container.options: --network forgejo-runner_default`.
  catthehacker/ubuntu:act-latest already has the docker CLI, so drop
  the apt-get step.

- ci.yml markdown-links: forgejo's action mirror at data.forgejo.org
  doesn't carry `lycheeverse/lychee-action`, so `uses:` was 404ing
  before the step could even run (rendering continue-on-error moot).
  Fully-qualified GitHub URL bypasses the mirror.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 18:37:54 +02:00

47 lines
1.3 KiB
YAML

name: Build ISO
# Full ISO build is ~15-20 min. Only run on push-to-main and manual
# dispatch so feature-branch iteration stays fast. See
# memory/project_ci_branching for the rationale.
on:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: build-iso-${{ github.ref }}
cancel-in-progress: true
jobs:
build-iso:
runs-on: ubuntu-latest
timeout-minutes: 30
# Attach the job container to `forgejo-runner_default` so the
# `docker-in-docker` hostname (the DinD sidecar) is DNS-resolvable.
# Without this the job runs on its own per-job network and DOCKER_HOST
# resolves nowhere. catthehacker/ubuntu:act-latest already ships
# docker CLI, so we don't need to apt-install anything.
container:
image: catthehacker/ubuntu:act-latest
options: --network forgejo-runner_default
env:
DOCKER_HOST: tcp://docker-in-docker:2375
steps:
- uses: actions/checkout@v4
- name: Build ISO
run: ./iso/build.sh
- name: Report ISO hash
run: |
iso=$(ls iso/out/*.iso | head -1)
echo "ISO: $iso"
sha256sum "$iso"
- name: Upload ISO artifact
uses: actions/upload-artifact@v4
with:
name: furtka-iso
path: iso/out/*.iso
retention-days: 14
if-no-files-found: error