File tree Expand file tree Collapse file tree 4 files changed +34
-3
lines changed
Expand file tree Collapse file tree 4 files changed +34
-3
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+ on :
3+ push :
4+ branches : [main, dev]
5+ pull_request :
6+ branches : [main, dev]
7+
8+ jobs :
9+ deploy :
10+ if : github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev'
11+ runs-on : self-hosted
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - name : Install docker
16+ uses : docker/setup-buildx-action@v3
17+
18+ - name : Login to registry
19+ uses : docker/login-action@v3
20+ with :
21+ registry : ${{ secrets.REGISTRY_URL }}
22+ username : ${{ secrets.REGISTRY_USERNAME }}
23+ password : ${{ secrets.REGISTRY_TOKEN }}
24+
25+ - name : Build and push
26+ uses : docker/build-push-action@v6
27+ with :
28+ push : true
29+ tags : |
30+ ${{ secrets.REGISTRY_URL }}/ung/zammad-workflows:${{ github.ref == 'refs/heads/main' && 'prod' || 'dev' }}
Original file line number Diff line number Diff line change 1- # BDE Tickets to PDF
1+ # Zammad Workflows
22
33Webhook Flask pour générer automatiquement des PDFs à partir des tickets Zammad du BDE.
44
Original file line number Diff line number Diff line change 1+ import threading
12from flask import Flask , request , jsonify
23from config import Config
34from auth import requires_auth
45from services .pdf import PDFGenerator
56from services .zammad import ZammadService
67from services .email import EmailService
7- import threading
8+
89
910try :
1011 Config .validate ()
Original file line number Diff line number Diff line change 1- from server import app as application
1+ from server import app as application # pylint: disable=unused-import
22
33# Optional: you can place WSGI middleware or other initialisation here.
44# Example for gunicorn:
You can’t perform that action at this time.
0 commit comments