Translates Ampel analysis schemas into Argo Workflows templates.
(for the deployment at https://ampel-dev.ia.zeuthen.desy.de)
- Obtain an API token from the Ampel dashboard
- Validate an Ampel jobfile with
curl -k -X 'POST' \
'https://ampel-dev.ia.zeuthen.desy.de/jobs/v1/lint' \
-H 'accept: application/json'
-H "Authorization: Bearer $AMPEL_TOKEN" \
-H 'Content-Type: application/json' \
-d "$(yq your_jobfile.yml -o json)" \
| yq . -P
where AMPEL_TOKEN
is your API token from step 1
3. Create an Argo workflow template from your jobfile (skipping validation)
curl -k -X 'POST' \
'https://ampel-dev.ia.zeuthen.desy.de/jobs/v1?validate=0' \
-H 'accept: application/json'
-H "Authorization: Bearer $AMPEL_TOKEN" \
-H 'Content-Type: application/json' \
-d "$(yq your_jobfile.yml -o json)" \
| yq . -P