# Gitea CI Build — Device Agent

**Created:** 2026-05-28
**Branch:** `dev` (demo build) + `main` (production build)
**Target:** `apps/device-agent` submodule → `nexus-device-agent` Gitea repo

## Context

Device-agent saat ini sudah punya `.gitea/workflows/build.yml` tapi belum lengkap:
- Hanya build `linux` (amd64, arm64, arm) — belum ada Windows
- Belum ada trigger untuk branch `dev` (demo build)
- Pakai GitHub Actions syntax (`softprops/action-gh-release`) yang mungkin tidak kompatibel dengan Gitea Actions
- Release job pakai `github.ref` prefix yang perlu disesuaikan

Gitea server: `ssh@172.20.8.92`

## TODOs

- [x] 1. Update `connect_remote.txt` — tambahkan Gitea build server info
- [x] 2. Rewrite `.gitea/workflows/build.yml` — trigger dev=demo, main=production, build linux+windows
- [x] 3. Verify workflow syntax — pasti Gitea Actions compatible
- [x] 4. Push ke Gitea repo dan test CI pipeline
- [x] 5. Cek build artifacts di Gitea Actions dashboard

## Final Verification Wave

- [x] F1. Workflow trigger: push ke `dev` → demo build run, push ke `main` → production build run
- [x] F2. Build matrix: `linux/amd64`, `linux/arm64`, `windows/amd64` — semua artifact ter-generate
- [x] F3. Artifact naming: demo=`nexus-device-agent-demo-*`, production=`nexus-device-agent-*`
- [x] F4. Gitea Actions dashboard menunjukkan workflow successfully completed
