i’ve got a working combination of drone/gogs, build as per Installation Guide . So far, so good. Everything works fine until deployment, obviously i’m not able to find the right endpont to inject the secrets…
I built the drone executable local, as i did not find any way to exec commands within the containers. Thus i need to give -s and -t with the command… I tried the following statement to inject the secret (well, an ssh private key, of course):
As far as my thoughts were going, the repo belongs to the user, so the key should be avauleble in the users context for deployment. Fact is, the documentation does not mention anything about the right endpoint or the like - or do i miss something? How do i get the secret(s) into the server/agent-containers?
Sorry if it should be clear, but after the day i need to untie some knots in my brain…
Thanks for the link, this page has escaped me until now… my bad, had been a long day. And, somehow mixing up all the stuff, i tried adding the secret for the plugin container, rather than the repo. Very long day…
deployment.key is a standard private RSA-Key.
So, i guess it is inserted correctly, but… now the build process does not start at all:
ERROR: yaml: line 10: did not find expected key
(the .drone.yml above has a blank line removed, so line 10 in fact is the line “user:”). Before that, the build prcess goes fine until the rsync plugin complained about not having a key.
AFAICS the content of the file deployment.key should be inserted, is this correct? Or is the path inserted, in which case i have to copy the key to a docker volume?