Some checks failed
CodeQL / Analyze (go) (push) Successful in 6m28s
Docker Image / build-docker (push) Failing after 13m26s
Lint and Testing / lint (push) Successful in 11m17s
Lint and Testing / test (push) Successful in 11m17s
Lint and Testing / golangci (push) Successful in 2m40s
28 lines
833 B
Markdown
28 lines
833 B
Markdown
# Gitea Actions
|
|
|
|
Workflows use [Gitea Actions](https://docs.gitea.com/usage/actions/overview) (compatible with GitHub Actions syntax).
|
|
|
|
## Secrets
|
|
|
|
| Secret | Used by | Purpose |
|
|
|--------|---------|---------|
|
|
| `GITEA_TOKEN` | `docker.yml` | Push images to the instance container registry |
|
|
|
|
Create a token with **write:package** (and **read:repository** for checkout if needed).
|
|
|
|
## Images
|
|
|
|
- **CI / CPU**: `docker/Dockerfile.ci` — built on every push to `main` and tags `v*`
|
|
- **GPU**: `docker/Dockerfile` — build manually on NVIDIA hosts
|
|
|
|
Registry URL: `${{ gitea.server_url }}/${{ gitea.repository }}`
|
|
|
|
## Local parity
|
|
|
|
```sh
|
|
sudo apt-get install -y build-essential cmake git
|
|
go test ./config/... ./punctuation/... ./transcode/...
|
|
make dependency && make test
|
|
docker build -f docker/Dockerfile.ci -t go-whisper-api:ci .
|
|
```
|