Compare commits
2
Commits
f6506aeeca
...
17dbe04c4b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
17dbe04c4b | ||
|
|
e5404fa1b9 |
@@ -59,12 +59,19 @@ jobs:
|
|||||||
cache-from: type=registry,ref=gitea.tryton.geeraert.eu/pi-ux-ce/django-python:buildcache
|
cache-from: type=registry,ref=gitea.tryton.geeraert.eu/pi-ux-ce/django-python:buildcache
|
||||||
cache-to: type=registry,ref=gitea.tryton.geeraert.eu/pi-ux-ce/django-python:buildcache,mode=max
|
cache-to: type=registry,ref=gitea.tryton.geeraert.eu/pi-ux-ce/django-python:buildcache,mode=max
|
||||||
|
|
||||||
- name: drop the pod to force pulling the new image
|
- name: Rollout Django to force pulling the new image
|
||||||
uses: actions-hub/kubectl@master
|
uses: actions-hub/kubectl@master
|
||||||
env:
|
env:
|
||||||
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
||||||
with:
|
with:
|
||||||
args: rollout restart deployment django -n django
|
args: rollout restart deployment django -n django
|
||||||
|
|
||||||
|
- name: Rollout Celery worker to force pulling the new image
|
||||||
|
uses: actions-hub/kubectl@master
|
||||||
|
env:
|
||||||
|
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
||||||
|
with:
|
||||||
|
args: rollout restart deployment celery-worker django
|
||||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||||
|
|
||||||
- name: update version in the variable
|
- name: update version in the variable
|
||||||
|
|||||||
@@ -126,4 +126,9 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
|||||||
#
|
#
|
||||||
# Celery settings
|
# Celery settings
|
||||||
CELERY_BROKER_URL = "redis://django-redis-svc:6379"
|
CELERY_BROKER_URL = "redis://django-redis-svc:6379"
|
||||||
CELERY_RESULT_BACKEND = "redis://django-redis-svc:6379"
|
CELERY_RESULT_BACKEND = "redis://django-redis-svc:6379"
|
||||||
|
|
||||||
|
CELERY_IMPORTS = [
|
||||||
|
'stash_management.apps', # This line imports the tasks.py file
|
||||||
|
# Add other app tasks here if needed
|
||||||
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user