To add a resource, add a line to the update_from_docs.sh
script
Retrieve the files using jsDelivr (cf docs)
Example:
https://cdn.jsdelivr.net/gh/simplicitesoftware/resources@latest/public/appstore_apps.json
jsDelivr has a cache which can be purged.
- Tag your commit with a valid incremented semver number like
v1.0.2
- Push the tag to github
- Purge the URLs containing the
@latest
reference, either through curl or through jsDelivr's UI
curl -L -X POST \
https://purge.jsdelivr.net \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{"path":[
"/gh/simplicitesoftware/resources@latest/public/appstore_demo.json",
"/gh/simplicitesoftware/resources@latest/public/appstore_apps.json",
"/gh/simplicitesoftware/resources@latest/public/appstore_tools.json",
"/gh/simplicitesoftware/resources@latest/portainer_templates/templates.json"
]}'
You should get a reponse like the following from jsDelivr if it worked. If not, use the UI.
{
"id": "CXWDAKcejkTaas0QS",
"status": "pending",
"timestamp": "2024-03-21T16:33:50.876Z"
}