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
test:
image: dlpbedrock/node-kafka
commands:
- echo "now we test"
build:
image: dlpbedrock/node-kafka
environment:
- PRIVATE_KEY="${PRIVATE_KEY}"
commands:
- mkdir /root/.ssh && echo "$PRIVATE_KEY" > /root/.ssh/id_rsa && chmod 0600 /root/.ssh/id_rsa
- cat /root/.ssh/id_rsa
- ssh-keyscan -H github.com >> /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