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

Try to obtain token from cronjob for auth

fix link to retrieve token

remove wrong character cronjob

Try to first obtain token
parent 403e1a72
No related branches found
No related tags found
1 merge request!59Prod
Pipeline #23482 passed with stages
in 3 minutes and 3 seconds
......@@ -13,8 +13,8 @@ spec:
image: byrnedo/alpine-curl
command: ["/bin/sh", "-c"]
args:
- curl http://backend:8000/api/catalog/admin/compute-gene-length/;
echo $CRON_USER && echo $CRON_PASSWORD
- >
curl http://backend:8000/api/auth/obtain_token/ -H "Content-Type: application/json" --request POST --data '{"username": "$CRON_USER", "password": "$CRON_PASSWORD"}'
env:
- name: CRON_USER
valueFrom:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment