Open mwaaas opened 7 years ago
I have also tried the following codefresh.yml but I get the same result:
deploy_to_metcarob_swarm:
image: codefresh/remote-docker
working_directory: ${{main_clone}}
commands:
- export SSH_KEY=$(echo ${SSH_KEY_COMMAS} | tr ',' '\n')
- rdocker ${{RDOCKER_HOST}} docker ps
environment:
- SSH_KEY_COMMAS=${{SSH_KEY}}
- SSH_PORT=${{SSH_PORT}}
I am not sure if I am having the same issue as mwaaas or not. The following command from my machine works:
docker run --rm -e SSH_KEY="${SSH_KEY}" -e SSH_PORT=7452 codefresh/remote-docker rdocker codefreshrunner@metcarob.com docker ps
But the following codefresh yml freestyle step hangs when prompting for the pass prase:
Output:
As per https://codefresh.io/docs/docs/deploy-your-containers/docker-swarm/#deploy-to-docker-swarm-using-the-pipelines-ui-deploy-step%20deploy_to_metcarob_swarm I have removed all new lines from the SSH key and replaced with commas: