Hwandji commited on
Commit
70efae9
·
1 Parent(s): adf1f00

chore(huggingface): Trigger deployment with corrected Dockerfile

Browse files
HUGGINGFACE_DEPLOYMENT_TRIGGER.md ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # HuggingFace Deployment Trigger Anleitung
2
+
3
+ ## 🎯 Situation
4
+
5
+ - ✅ Korrigiertes Dockerfile ist auf GitHub (Commit `6c360da`)
6
+ - ❌ HuggingFace Build stuck seit 25.11.2025 (altes Dockerfile)
7
+ - ❌ GitHub Actions wurde nicht automatisch getriggert
8
+
9
+ ## 🚀 Lösung: Deployment manuell triggern
10
+
11
+ ### Option 1: Dummy Commit (Empfohlen)
12
+
13
+ Erstelle einen leeren Commit um GitHub Actions zu triggern:
14
+
15
+ ```bash
16
+ # Touch eine Datei im huggingface/ Verzeichnis
17
+ touch huggingface/.deploy-trigger
18
+
19
+ # Commit
20
+ git add huggingface/.deploy-trigger
21
+ git commit -m "chore(huggingface): Trigger deployment with updated Dockerfile"
22
+
23
+ # Push (triggert GitHub Actions)
24
+ git push origin main
25
+ ```
26
+
27
+ **Ergebnis:** GitHub Actions startet automatisch und deployed auf HuggingFace
28
+
29
+ ### Option 2: GitHub Web UI (Manual Workflow Dispatch)
30
+
31
+ 1. Öffne: https://github.com/satwareAG/saap/actions/workflows/deploy-huggingface.yml
32
+ 2. Klicke auf **"Run workflow"** (rechts oben)
33
+ 3. Branch: `main`
34
+ 4. Reason: "Deploy with corrected Dockerfile"
35
+ 5. Klicke **"Run workflow"**
36
+
37
+ **Ergebnis:** Workflow startet sofort
38
+
39
+ ### Option 3: Bestehenden Workflow Re-Run
40
+
41
+ Falls ein fehlgeschlagener Workflow existiert:
42
+
43
+ 1. Öffne: https://github.com/satwareAG/saap/actions
44
+ 2. Finde den letzten "Deploy to HuggingFace Spaces" Run
45
+ 3. Klicke **"Re-run failed jobs"** oder **"Re-run all jobs"**
46
+
47
+ ## ✅ Deployment Verification
48
+
49
+ Nach dem Trigger:
50
+
51
+ 1. **GitHub Actions Status:**
52
+ - https://github.com/satwareAG/saap/actions
53
+ - Warte auf grünen Haken (✅)
54
+
55
+ 2. **HuggingFace Build Logs:**
56
+ - https://huggingface.co/spaces/Hwandji/saap
57
+ - Sollte neue Build-Logs zeigen (nicht mehr vom 25.11.)
58
+ - Erwartete COPY-Zeilen:
59
+ ```
60
+ COPY nginx.conf /etc/nginx/nginx.conf
61
+ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
62
+ ```
63
+ - ✅ Keine Fehler mehr!
64
+
65
+ 3. **Space URL:**
66
+ - https://Hwandji-saap.hf.space
67
+ - Sollte nach ~2-3 Minuten laufen
68
+
69
+ ## 📋 Expected Flow
70
+
71
+ ```
72
+ git push origin main
73
+
74
+ GitHub Actions triggered
75
+
76
+ Copies files to hf-deploy/ (Dockerfile, nginx.conf, supervisord.conf)
77
+
78
+ Uploads to HuggingFace Space
79
+
80
+ HuggingFace builds with NEW Dockerfile
81
+
82
+ ✅ Build succeeds (COPY paths correct)
83
+
84
+ Space goes live at Hwandji-saap.hf.space
85
+ ```
86
+
87
+ ## 🔍 Wenn Build fehlschlägt
88
+
89
+ 1. Check GitHub Actions Logs für Fehler
90
+ 2. Check HuggingFace Build Logs:
91
+ - Sollte zeigen: `COPY nginx.conf` (ohne `huggingface/`)
92
+ - Falls noch `COPY huggingface/...` → Workflow hat alte Version deployed
93
+
94
+ 3. Check dass alle Dateien in hf-deploy/ sind:
95
+ - Dockerfile
96
+ - nginx.conf
97
+ - supervisord.conf
98
+ - backend/
99
+ - frontend/
100
+ - requirements.txt
101
+
102
+ ---
103
+
104
+ **Empfohlene nächste Aktion:** Option 1 (Dummy Commit) ausführen
huggingface/.deploy-trigger ADDED
@@ -0,0 +1 @@
 
 
1
+ Deployment trigger file - Tue Dec 2 11:55:29 CET 2025