Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

PHP pipeline without docker

Franko Ivašić June 18, 2019

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:

+ ssh -t root@myserver "cd /home/user/public_html/; ./laravel-script.sh"Pseudo-terminal will not be allocated because stdin is not a terminal.ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directoryHost key verification failed.   

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.

1 answer

0 votes
Franko Ivašić June 18, 2019

Hm, no answer at all.

To  put the short question, does anyone use bitbucket automatic deploy (pipeline) without docker?

Not that everyone need to use docker.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events