Hi
Very new to Git and Bitbucket and I am trying to deploy my site to my remote server.
Here is my Pipeline code, which I have copied so not even sure it works at the moment.
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: samueldebruyn/debian-git
pipelines:
default:
- step:
script:
- mkdir -p ~/.ssh
- umask 077 - echo $MY_SSH_KEY | base64 --decode > ~/.ssh/id_rsa
- scp -i ~/.ssh/id_rsa -P $SERVER_PORT -r $DIRECTORY_TRANSFER_LIST $USERNAME@$SERVER_IP_ADDRESS:~/test
I have setup Environment Variables for SERVER_PORT which is 22, USERNAME to match my login username, SERVER_IP_ADDRESS to my remote server's IP.
What I don't understand is:
MY_SSH_KEY
and
DIRECTORY_TRANSFER_LIST?
And where it finds my SSH Key?
(I have already set up an SSH that connects to my computer in the main Bitbucket Settings and that seems to push my files to the repo ok)
And should the image be:
image: samueldebruyn/debian-git
I got this from following a youtube video for setting Bitbucket up with FTP