I try to publish to canister.io when my local gitea repository gets updated. I have added secrets in the drone.io UI but I get this message in the console:
time="2021-11-08T20:38:33.745829314Z" level=error msg="Handler for POST /v1.41/auth returned error: Get \"https://cloud.canister.io:5000/v2/\": authorization server did not include a token in the response"
And my pipeline looks like this=
- name: build
- "npm install --production"
- name: publish
The docker plugins executes a standard
docker login command to authenticate with your registry. This error indicates docker tried to login to your registry (
https://cloud.canister.io) but the registry returned an invalid response (no token in the response). I have not seen this error before, but since it comes from docker and indicates a problem with the registry response, you may want to consider reaching out to your registry admin for support.
Also you may have some luck googling the error. I did a quick search and other people get this same error message from canister.io even when they are not using Drone. For example, https://stackoverflow.com/questions/55967782/not-able-to-sign-in-using-docker-to-canister-io-authorization-server-did-not-i
thank you @bradrydzewski for your answer, I tested to push to gitlab instead and it works flawless