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:
33
CLAUDE.md
33
CLAUDE.md
@@ -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**:
|
||||
|
||||
Reference in New Issue
Block a user