docs: add Gitea Actions workflow status checking documentation

- Add API endpoint and curl commands to check CI status
- Document authentication with Authorization: token header
- Add response field descriptions (status, conclusion)
- Reference BWS key for GITEA_API_TOKEN
This commit is contained in:
Oussama Douhou
2026-01-10 14:38:53 +01:00
parent f5f10ed6c4
commit 8b1556c034
2 changed files with 94 additions and 0 deletions

View File

@@ -416,6 +416,39 @@ Grafana service account token stored in BWS:
- Key: `GRAFANA_OPENCODE_ACCESS_TOKEN`
- BWS ID: `c77e58e3-fb34-41dc-9824-b3ce00da18a0`
## CI/CD - Gitea Actions
The `oh-my-opencode-free` Docker image is built automatically via Gitea Actions on push to main.
### Check Workflow Status
**Web UI:**
```
https://git.app.flexinit.nl/oussamadouhou/oh-my-opencode-free/actions
```
**API:**
```bash
# Get token from BWS (key: GITEA_API_TOKEN)
GITEA_TOKEN="<token>"
# List recent runs with status
curl -s -H "Authorization: token $GITEA_TOKEN" \
"https://git.app.flexinit.nl/api/v1/repos/oussamadouhou/oh-my-opencode-free/actions/runs?limit=5" | \
jq '.workflow_runs[] | {run_number, status, conclusion, display_title, head_sha: .head_sha[0:7]}'
```
### API Response Fields
| Field | Values |
|-------|--------|
| `status` | `queued`, `in_progress`, `completed` |
| `conclusion` | `success`, `failure`, `cancelled`, `skipped` |
### Credentials
- **GITEA_API_TOKEN** - Gitea API access (stored in BWS)
## Project Status
**Completed**: