Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

created bitbucket self-runner wants to deploy the docker stack on remote host

Bhaskarreddy October 4, 2021
Created self-runner and was able to build the image and push it to my private Docker HUB no problem till here, Now I want to deploy this Docker Image in my Host server. here is the problem came not able to connect to my host server.
INFO: Executing the pipe...
INFO: Using default ssh key
INFO: Executing command on REMOTE HOST IP
ssh -A -tt -i /root/.ssh/pipelines_id -o StrictHostKeyChecking=no -p 22 root@REMOTE HOST IP bash -c 'docker stack ls'
Permission denied, please try again.
Permission denied, please try again.
root@REMOTE HOST IP : Permission denied (publickey,password).
✖ Execution failed.
Bellow is my Configuration file:
branches:
create-a-self-hosted-runners:
- step:
name: Deploy to Dev
deployment: Development
runs-on: assistant.dev
script:
- IMAGE_NAME=$"docker.hub.com:4550/root/test-demo/settings"
- VERSION="prod-0.1.${BITBUCKET_BUILD_NUMBER}"
- pipe: atlassian/ssh-run:0.3.1
variables:
SSH_USER: 'root'
SERVER: 'REMOTE HOST IP'
COMMAND: 'docker stack ls'
services:
- docker

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events