ci: run only lint and tests on main, build images on tags and test branches
This commit is contained in:
1 parent
84bc6884b0
commit
3081397fc1
3 files changed
+40
-19
No files matched your search
@@ -167,3 +167,17 @@ docker run -p 8080:8080 -v $(pwd)/dev-data:/data -e JWT_SECRET="dev-secret-12345
|
||||
# 5. SQLite DB direkt per CLI inspizieren
|
||||
sqlite3 ./dev-data/mindsift.db ".tables" "SELECT * FROM thoughts LIMIT 5;"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 🚀 7. Gitea CI/CD & Docker Tagging-Strategie
|
||||
|
||||
* **Registry:** `git.dsit.me/sandrodach/mindsift`
|
||||
* **Gitea Secret für Registry-Login:** `secrets.PUSH_TOKEN`
|
||||
* **API-Endpunkt zum Auslesen der Pipeline:** `https://git.dsit.me/api/v1/repos/sandrodach/MindSift/actions/tasks`
|
||||
* **Branch- & Release-Regeln ([`.gitea/workflows/build-and-publish.yaml`](file:///home/sandro/Dokumente/git/MindSift/.gitea/workflows/build-and-publish.yaml)):**
|
||||
* **Push auf `main`:** Führt **nur** Linter, TypeScript-Checks (`tsc --noEmit`) und Unit-Tests aus. **Kein Docker-Build/Push** (hält die Registry sauber).
|
||||
* **Push auf Test-/RC-Branch (z. B. `1.1-rc`, `latest`, `test-feature`):** Führt Tests aus **und** baut/pusht das Image mit dem Branch-Namen (`:1.1-rc`, `:latest`).
|
||||
* **Git-Tag / Release (z. B. `v1.0`, `1.1`):** Führt Tests aus **und** baut/pusht das Release-Image (`:v1.0`, `:1.1`).
|
||||
* **Cross-Compile Speedup:** `Dockerfile` nutzt `FROM --platform=$BUILDPLATFORM` für Node & Go und kompiliert `amd64` + `arm64` nativ über `GOOS=${TARGETOS} GOARCH=${TARGETARCH}` ohne langsames QEMU.
|
||||
|
||||
Reference in new issue
Block a user