Hello i have successfully setup and integrated one of my projects with drone… its amazing… however i found one issue that might be the key factor if i will be able to keep using this CI along with my other projects…
deploy: image: appleboy/drone-scp host: example.com target: /home/ec2-user/public/ secrets: [ ssh_username, ssh_key ] source: - dist/**
i have several other projects hosted in different servers, which uses different username + different ssh_keys (which i have no control over) what i am trying to do is have something like this
deploy: image: appleboy/drone-scp host: $PROJECT_A_HOST target: $PROJECT_A_TARGET key: $PROJECT_A_KEY user: $PROJECT_A_USER source: - dist/**
but according with this resolution of this issue: https://stackoverflow.com/questions/46350675/access-environment-variables-of-drone-in-drone-plugins?noredirect=1&lq=1
GO can not evaluate bash expressions… is there a work around for this kind of situation?