Secrets are not exposed

I am trying to expose private key to containers environment.

Ive created secret

drone secret add --repository "**/***" --name PRIVATE_KEY --value @/home/rmoiseev/.ssh/ci_rsa

And now i am able to see this secret in UI

Then in my pipeline i am doing this

    image: dlpbedrock/node-kafka
      - echo "now we test"
    image: dlpbedrock/node-kafka
      - mkdir /root/.ssh && echo "$PRIVATE_KEY" > /root/.ssh/id_rsa && chmod 0600 /root/.ssh/id_rsa
      - cat /root/.ssh/id_rsa
      - ssh-keyscan -H >> /root/.ssh/known_hosts
      - yarn install

And in pipeline log i see that $PRIVATE_KEY is empty

PS In 0.8 docs there is info that we should sign pipeline yaml, but as i understand this was removed in 0.6

Please see

I see two issues:

  • you are missing a secrest block
  • PRIVATE_KEY="${PRIVATE_KEY}" is not valid syntax

0.8 docs there is info that we should sign pipeline yaml

This is the link to the 0.8 documentation Can you please let me know where it mentions signing the yaml configuration file? Signing was removed in 0.6 and I cannot find any references in the docs.

Thank you, think i found old docs.

UPD: Yes it was witch contains strange docs compiled from different versions

@bradrydzewski we should archive those docs and state they are for 0.5, with a link to the latest.