Investigate .gitea workflow origin and add buildx layer caching #1

Open
opened 2026-02-27 23:48:38 +01:00 by timothy · 0 comments
Owner

Background

The ersatztv-ffmpeg repo has .gitea/workflows/build.yml while the main ersatztv repo has none — only the upstream .github/workflows/. The .gitea/ workflows were created during the initial fork setup (see server-management#172 comment) when the repo was adapted for Gitea Actions:

  • Stripped arm32v7 and arm64 Dockerfiles (only amd64 needed for jazz)
  • Replaced .github/workflows/ with .gitea/workflows/build.yml targeting Gitea container registry

The main ersatztv repo still needs its equivalent (tracked in ersatztv#4).

Stale workflows

There's also a multi-platform.yml from the upstream history that keeps getting queued as a stale run. It should be explicitly removed or the file deleted from the repo to prevent phantom builds.

Build caching

The FFmpeg build takes 30+ minutes cold. With Docker buildx layer caching, subsequent builds would only rebuild changed layers. Options:

  • Registry cache: cache-from: type=registry,ref=192.168.1.95:3000/timothy/ersatztv-ffmpeg:buildcache / cache-to: type=registry,...
  • Local cache: cache-from: type=local,src=/tmp/.buildx-cache / cache-to: type=local,...
  • GitHub Actions cache: Not available on Gitea, skip this option

Tasks

  • Confirm origin of .gitea/workflows/build.yml (answered: manual fork setup)
  • Remove stale multi-platform.yml if it still exists in the repo
  • Add cache-from/cache-to to build.yml for buildx layer caching
  • Verify cached rebuild is significantly faster than cold build
## Background The ersatztv-ffmpeg repo has `.gitea/workflows/build.yml` while the main ersatztv repo has none — only the upstream `.github/workflows/`. The `.gitea/` workflows were created during the initial fork setup (see server-management#172 comment) when the repo was adapted for Gitea Actions: - Stripped arm32v7 and arm64 Dockerfiles (only amd64 needed for jazz) - Replaced `.github/workflows/` with `.gitea/workflows/build.yml` targeting Gitea container registry The main ersatztv repo still needs its equivalent (tracked in ersatztv#4). ## Stale workflows There's also a `multi-platform.yml` from the upstream history that keeps getting queued as a stale run. It should be explicitly removed or the file deleted from the repo to prevent phantom builds. ## Build caching The FFmpeg build takes 30+ minutes cold. With Docker buildx layer caching, subsequent builds would only rebuild changed layers. Options: - **Registry cache**: `cache-from: type=registry,ref=192.168.1.95:3000/timothy/ersatztv-ffmpeg:buildcache` / `cache-to: type=registry,...` - **Local cache**: `cache-from: type=local,src=/tmp/.buildx-cache` / `cache-to: type=local,...` - **GitHub Actions cache**: Not available on Gitea, skip this option ### Tasks - [ ] Confirm origin of `.gitea/workflows/build.yml` (answered: manual fork setup) - [ ] Remove stale `multi-platform.yml` if it still exists in the repo - [ ] Add `cache-from`/`cache-to` to `build.yml` for buildx layer caching - [ ] Verify cached rebuild is significantly faster than cold build
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: timothy/ersatztv-ffmpeg#1