Skip to content
Snippets Groups Projects
Commit 092da880 authored by Kenzo-Hugo Hillion's avatar Kenzo-Hugo Hillion :recycle:
Browse files

get back to previous cronjob

parent 658b4a0e
No related branches found
No related tags found
1 merge request!59Prod
Pipeline #23809 passed
...@@ -11,8 +11,11 @@ spec: ...@@ -11,8 +11,11 @@ spec:
containers: containers:
- name: compute-statistics - name: compute-statistics
image: gempesaw/curl-jq image: gempesaw/curl-jq
command: ["/bin/sh"] command: ["/bin/sh", "-c"]
args: ['-c', 'TOKEN=$(curl http://backend:8000/api/auth/obtain_token/ -H "Content-Type: application/json" --request POST --data '{"username": "$CRON_USER", "password": "$CRON_PASSWORD"}' | jq -r '.token'); echo ${TOKEN}'] args:
- >
TOKEN=$(curl http://backend:8000/api/auth/obtain_token/ -H "Content-Type: application/json" --request POST --data '{"username": "$CRON_USER", "password": "$CRON_PASSWORD"}' | jq -r '.token');
echo ${TOKEN};
env: env:
- name: CRON_USER - name: CRON_USER
valueFrom: valueFrom:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment