Search code examples
phpsshbamboocloudcontrol

How to config continous deployment from BamBoo to CloudControl


I'm configuring my project so that after building and testing phase, the project will be automatically deployed to CloudControl. However, I'm struggling with the configuration

Since my web app written in php so I have to choose SSH as deployment method.

The following is my configuration (it doesn't work), host/port are getting by running "bin/ip addr" in the remote server

Host: 10.36.49.48

Port: 26

SSH command: cctrlapp ssh://[email protected]/repository.git push

How can I fix this problem


Solution

  • You can push your code by either running

    cctrlapp myapp/mydeployment push
    

    or

    git add remote cctrl ssh://[email protected]/repository.git
    git push cctrl mydeployment
    

    The deploy itself (which is seperate from pushing the code) is done by

    cctrlapp myapp/mydeployment deploy