Initial Real-ESRGAN API project setup
This commit is contained in:
50
.gitea/workflows/README.md
Normal file
50
.gitea/workflows/README.md
Normal file
@@ -0,0 +1,50 @@
|
||||
# Gitea Workflows Configuration
|
||||
|
||||
This directory contains Gitea CI/CD workflow definitions.
|
||||
|
||||
## build.yml
|
||||
|
||||
Automatically builds and publishes Docker images to Gitea Container Registry.
|
||||
|
||||
### Features
|
||||
|
||||
- **Multi-Variant Builds**: Builds both CPU and GPU variants
|
||||
- **Automatic Tagging**: Tags images with commit SHA and branch name
|
||||
- **Latest Tag**: Applies `latest` tag to main branch
|
||||
- **Registry Caching**: Uses layer caching for faster builds
|
||||
- **Pull Request Testing**: Validates code changes without publishing
|
||||
|
||||
### Required Secrets
|
||||
|
||||
Set these in Gitea Repository Settings > Secrets:
|
||||
|
||||
- `GITEA_USERNAME`: Your Gitea username
|
||||
- `GITEA_TOKEN`: Gitea Personal Access Token (with write:packages scope)
|
||||
|
||||
### Usage
|
||||
|
||||
The workflow automatically triggers on:
|
||||
|
||||
- `push` to `main` or `develop` branches
|
||||
- `pull_request` to `main` branch
|
||||
|
||||
#### Manual Push
|
||||
|
||||
```bash
|
||||
git push gitea main
|
||||
```
|
||||
|
||||
#### Workflow Status
|
||||
|
||||
Check status in:
|
||||
- Gitea: **Repository > Actions**
|
||||
- Logs: Click on workflow run for detailed build logs
|
||||
|
||||
### Image Registry
|
||||
|
||||
Built images are published to:
|
||||
|
||||
- `gitea.example.com/realesrgan-api:latest-cpu`
|
||||
- `gitea.example.com/realesrgan-api:latest-gpu`
|
||||
- `gitea.example.com/realesrgan-api:{COMMIT_SHA}-cpu`
|
||||
- `gitea.example.com/realesrgan-api:{COMMIT_SHA}-gpu`
|
||||
Reference in New Issue
Block a user