docs: add Docker build workflow to manual build section (6.2)

This commit is contained in:
2026-03-28 13:27:17 +03:00
parent b5ed703108
commit 4c6908bccb
+19
View File
@@ -568,6 +568,25 @@ jobs:
> **Note:** `actions/upload-artifact` stores artifacts temporarily (default retention: 90 days). For permanent distribution, use the release workflow with a `v*` tag. > **Note:** `actions/upload-artifact` stores artifacts temporarily (default retention: 90 days). For permanent distribution, use the release workflow with a `v*` tag.
**Docker-only projects** don't need artifact uploads — just verify the image builds:
```yaml
# .gitea/workflows/build.yml
name: Build Docker Image
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: docker build -t your-app:dev .
```
## 7. Docker Build ## 7. Docker Build
### Multi-stage Dockerfile ### Multi-stage Dockerfile