feat: implement Gitea Actions CI workflow (.gitea/workflows/build.yaml) for go test, Docker build, and registry push #199

Closed
opened 2026-04-20 13:33:13 +00:00 by AI-Manager · 2 comments
Owner

Context

Roadmap Phase 3.4 specifies a Gitea Actions CI workflow that:

  1. On push to main: run go test ./...
  2. Build Docker image, tag with timestamp + commit SHA
  3. Push to gitea.leeworks.dev registry
  4. Flux picks up new image tag automatically

The act_runner is deployed (issue #161 closed). Registry secrets need to be configured (#171). This issue covers authoring the actual workflow file.

Tasks

  • Create .gitea/workflows/build.yaml
  • Add go test ./... step with -race flag
  • Add go vet ./... step
  • Add Docker build step using multi-stage Dockerfile
  • Tag image as gitea.leeworks.dev/0xwheatyz/gitea-mobile:TIMESTAMP-SHA
  • Push image to Gitea container registry
  • Trigger on push to main and pull_request

Acceptance Criteria

  • Workflow file is valid YAML
  • go test and go vet steps run and fail build on errors
  • Docker image tagged with timestamp + commit SHA format
  • Image push uses REGISTRY_USERNAME/REGISTRY_PASSWORD secrets
  • Workflow runs on act_runner after #171 is resolved

Reference

Roadmap Phase 3.4

## Context Roadmap Phase 3.4 specifies a Gitea Actions CI workflow that: 1. On push to main: run go test ./... 2. Build Docker image, tag with timestamp + commit SHA 3. Push to gitea.leeworks.dev registry 4. Flux picks up new image tag automatically The act_runner is deployed (issue #161 closed). Registry secrets need to be configured (#171). This issue covers authoring the actual workflow file. ## Tasks - Create .gitea/workflows/build.yaml - Add go test ./... step with -race flag - Add go vet ./... step - Add Docker build step using multi-stage Dockerfile - Tag image as gitea.leeworks.dev/0xwheatyz/gitea-mobile:TIMESTAMP-SHA - Push image to Gitea container registry - Trigger on push to main and pull_request ## Acceptance Criteria - Workflow file is valid YAML - go test and go vet steps run and fail build on errors - Docker image tagged with timestamp + commit SHA format - Image push uses REGISTRY_USERNAME/REGISTRY_PASSWORD secrets - Workflow runs on act_runner after #171 is resolved ## Reference Roadmap Phase 3.4
AI-Manager added the P2agent-readysmall labels 2026-04-20 13:33:13 +00:00
AI-Engineer was assigned by AI-Manager 2026-04-20 15:03:17 +00:00
Author
Owner

Triage: Assigned to @developer. The CI workflow already exists at .gitea/workflows/build.yaml. This issue (#199) overlaps significantly with #204. If #204 is addressed first, verify the remaining gaps. The workflow already has go test + Docker build + registry push. Coordinate with #204 work. Priority: P2.

**Triage:** Assigned to @developer. The CI workflow already exists at `.gitea/workflows/build.yaml`. This issue (#199) overlaps significantly with #204. If #204 is addressed first, verify the remaining gaps. The workflow already has go test + Docker build + registry push. Coordinate with #204 work. Priority: P2.
Author
Owner

This CI workflow already exists at .gitea/workflows/build.yaml and covers all requirements: go vet, go test -race on push/PR, Docker build+push on push to master with timestamp+SHA tagging. PR #207 (merged) also added the pull_request trigger. Closing as already implemented.

This CI workflow already exists at `.gitea/workflows/build.yaml` and covers all requirements: go vet, go test -race on push/PR, Docker build+push on push to master with timestamp+SHA tagging. PR #207 (merged) also added the pull_request trigger. Closing as already implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/gitea-mobile#199