change the DB settings and change the policy to restart after build
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5m27s

This commit is contained in:
pierre geeraert
2025-06-22 19:24:22 +01:00
parent 5bbe4c5c61
commit 3315fbdb4f
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -54,5 +54,5 @@ jobs:
env: env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with: with:
args: delete pod -n django-python --all args: rollout restart deployment django -n django
- run: echo "🍏 This job's status is ${{ job.status }}." - run: echo "🍏 This job's status is ${{ job.status }}."
+5 -1
View File
@@ -67,7 +67,11 @@ def download_mo(request,file):
#return HttpResponse('<h1>Hello !</h1>') #return HttpResponse('<h1>Hello !</h1>')
def simpsons(request): def simpsons(request):
generated_db = DB_generation("192.168.88.50",32345, "django_username", "Suffrage-Moneybags-Illusion7","django") #dev settings
#generated_db = DB_generation("192.168.88.50",32345, "django_username", "Suffrage-Moneybags-Illusion7","django")
#production settings
generated_db = DB_generation("django-db-svc",5432, "django_username", "Suffrage-Moneybags-Illusion7","django")
cursor = generated_db.cursor() cursor = generated_db.cursor()
#get max number of season #get max number of season