Hi,
I can't find proper answer or instructions on that matter.
I'm trying to make a pipeline on remote server without docker, just plain deploy and running a script on the server afterwards.
Many examples are dedicated to docker service, although deploy without docker shall be far easier.
Here is some example of bitbucket-pipelines.yml:
pipelines:
default:
- step:
name: Testing
deployment: test
caches:
- composer
script: # Modify the commands below to build your repository.
- echo "Simple deploy"
branches:
master:
- step:
name: rsync
script: # ssh and script
- ssh -t root@myserver "cd /home/user/public_html/; ./laravel-script.sh"
Then I got error:
<span>+ ssh -t <a href="mailto:root@vmi267322.contaboserver.net" target="_blank" rel="noopener nofollow noreferrer">root@myserver</a> "cd /home/user/public_html/; ./laravel-script.sh"</span><span>Pseudo-terminal will not be allocated because stdin is not a terminal.</span><span>ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory</span><span>Host key verification failed. </span>
The same error if putting ssh without -t or rsync command.
(name myserver is instead of valid hostname of the server).
Of course, pipeline is enabled, ssh key is set within settings-ssh keys
If I tried to put something as:
script:
- pipe: atlassian/rsync-deploy:0.2.0
variables:
USER: 'ec2-user'
SERVER: 'myserver'
REMOTE_PATH: '/var/www/build/'
LOCAL_PATH: 'build'
Then I got error related to the docker, seems that pipe: atlassian/rsync-deploy:0.2.0 fires a docker container.
So, simple deploy, instead of script of the server, even better that bitbucket runs the unit test within the laravel project.
Thanks in advance.