Update CI/CD to use self-hosted runner and direct docker-compose build
Some checks failed
Deploy to Production / deploy (push) Failing after 2s

This commit is contained in:
2026-02-15 20:29:51 +01:00
parent 00063ad57b
commit 835ea1feb3
3 changed files with 21 additions and 39 deletions

View File

@@ -4,13 +4,12 @@ This template should help get you started developing with Vue 3 in Vite. The tem
Learn more about IDE Support for Vue in the [Vue Docs Scaling up Guide](https://vuejs.org/guide/scaling-up/tooling.html#ide-support).
## Uruchamianie (Docker Compose)
## Uruchamianie (Automatyczne - CI/CD)
Na serwerze, aby uruchomić aplikację w trybie produkcyjnym wraz z automatycznymi aktualizacjami (Watchtower):
Projekt wykorzystuje **Gitea Actions** z runnerem **self-hosted** na serwerze produkcyjnym.
Każdy push do gałęzi `main` automatycznie:
1. Pobiera kod na serwerze.
2. Zatrzymuje i usuwa stare kontenery.
3. Buduje i uruchamia nową wersję aplikacji przy użyciu `docker compose up -d --build`.
```bash
docker compose up -d
```
Aplikacja będzie dostępna na porcie **8083**.
Wszelkie zmiany w repozytorium (branch `main`) spowodują automatyczne zbudowanie nowego obrazu przez Gitea Actions i zaktualizowanie kontenera przez Watchtower.
Aplikacja dostępna jest na porcie **8083**.