chore(ci): setup Gitea Actions + Portainer auto-deploy pipeline
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled

This commit is contained in:
Pepe Ziberi
2026-05-19 18:07:56 +02:00
parent 63a57dcb7c
commit 362a7e4666
8 changed files with 213 additions and 74 deletions

View File

@@ -10,7 +10,8 @@
# 6. Environment-Variablen setzen (siehe unten)
# 7. Deploy
#
# Danach: Push auf main → Portainer baut automatisch neu
# Danach: Push auf main → Gitea Actions baut Image →
# Portainer Webhook/Watchtower holt neues Image
#
# Benötigte Environment-Variablen:
# POSTGRES_USER (default: lageplan)
@@ -21,6 +22,8 @@
# MINIO_ROOT_USER (default: minioadmin)
# MINIO_ROOT_PASSWORD (ÄNDERN!)
# MINIO_PUBLIC_URL (z.B. https://s3.example.com)
# GITEA_REGISTRY_USER (für Watchtower Registry-Auth)
# GITEA_REGISTRY_PASS (für Watchtower Registry-Auth)
##############################################
services:
@@ -81,10 +84,8 @@ services:
- lageplan
# ─── Lageplan Web App ──────────────────────
# Image kommt aus Gitea Container Registry (gebaut via Gitea Actions)
web:
build:
context: .
dockerfile: Dockerfile
image: git.purepixel.ch/adminpepe/lageplan:latest
restart: unless-stopped
environment:
@@ -118,6 +119,9 @@ services:
WATCHTOWER_POLL_INTERVAL: 60
WATCHTOWER_CLEANUP: "true"
WATCHTOWER_LABEL_ENABLE: "false"
# Gitea Registry Auth
REPO_USER: ${GITEA_REGISTRY_USER}
REPO_PASS: ${GITEA_REGISTRY_PASS}
networks:
- lageplan