Forums

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

Bitbucket pipeline to VPS

adhenrique
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 22, 2018

I'm trying to generate a pipeline from my repo for my VPS, but it looks like my vps can not perform a git pull.
I added a ssh key to my team, I also added ssh to my repo, specifically, but whenever I run a pipeline, my vps response is:

Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.

If I run git pull manually, from my vps ssh, its run corretly.

What's wrong?
Here's my pipeline file:

image: atlassian/default-image:latest

pipelines:
  branches:
    master:
      - step:
          script:
            - echo "Started deploy..."
            - cat ./deploy.sh | ssh <user>@<ip>

 

And my deploy.sh:

#/var/www/rendup_hotsite
cd /var/www/rendup_hotsite
git pull origin master
echo 'Deploy step finished'

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events