Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
pipelines:
branches:
master:
- step:
name: "Deploy"
script:
- apt-get update -y
- apt-get install -y ssh
- echo "Deploying to environment"
- ssh -i ~/.ssh/config usuario@servidor "git --git-dir=/diretorio/do/repositorio/git/bare fetch origin master:master; GIT_WORK_TREE=/aonde/os/arquivos/vao/ficar/no/servidor/ git --git-dir=/diretorio/do/repositorio/git/bare checkout master -f; cd /aonde/os/arquivos/vao/ficar/no/servidor/; composer install; php artisan migrate; npm run prod"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment