After struggling a bit I’m happy to develop a complete stack of service which runs very well. For me the next piece of puzzle was to upgrade the service when new image is published. So I followed the docs and created a receiver hook like this:
I’ve already put the same label under my service. So now I expect when the ‘latest’ tag changes in repository, service should be auto-upgraded, right? But it doesn’t. Any ideas?
I also tried using trigger URL, but it gives 404 error. (Another question: is it necessary to trigger this URL for upgrading service? won’t the upgrade happen in background?)
Additional details:
I just triggered the URL provided with empty POST, and here’s the response I received:
{
“actions”: {},
“links”: {
“self”: “https://try.rancher.com/v1-webhooks/endpoint”
},
“message”: “Error No Payload recevied from Docker Hub webhook in executing driver for serviceUpgrade”,
“status”: “Server Error”,
“statusCode”: 400,
“type”: “error”
}
I am using AWS ECR for this service and to keep it authenticated I run “objectpartners/rancher-ecr-credentials” as another service on host.