I'd like to create a pipeline where i make a git pull and a composer update on a DigitalOcean instance when we merge to master.
I don't want to build a server I just want to deploy code and run a few shell commands.
I've added my personal ssh key to the pipeline, so that already should be on digitalocean.
I can't find any tutorials :(
Hi,
Thanks for your answer. I haven't tried that, but i do something similar:
my `bitbucket-pipelines.yml`:
pipelines:
default:
- step:
name: default
script:
- echo "Deploying code to DigitalOcean"
branches:
deploy-master:
- step:
name: deploy
deployment: test
script:
- echo "Deploying master to live"
- pipe: atlassian/ssh-run:0.1.4
variables:
SSH_USER: '{sshuser}'
SERVER: '{serverip}'
COMMAND: 'ci-scripts/pull-deploy-master.sh'
MODE: 'script'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.