0

Docker Hub used to have a nice system for build triggers with a URL which would be called with curl using POST and a bit of json.

Their new setup also has 'Build triggers' which offers to 'Trigger your Automated Build by sending a POST to a specific endpoint.'

So I create one and it gives a URL

https://cloud.docker.com/api/build/v1/source/XXX-XXX-XXX/trigger/YYY-YYY-YYY

But using the same curl command on this does not help

curl -H "Content-Type: application/json" --data '{"build": true}' -X POST https://cloud.docker.com/api/build/v1/source/XXX-XXX-XXX/trigger/YYY-YYY-YYY

Gets back some json which includes "state": "Failed" and no builds happen.

The docs do not mention anything about build triggers from a URL.

Would anyone know how to use this feature?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.