J
J
jtag2021-05-12 14:37:23
git
jtag, 2021-05-12 14:37:23

How to update software on remote machines automatically from the repository?

How to update software on remote machines automatically from the repository? Remote servers are accessible via openvpn, i.e. there is ssh access, you can type git commands and deploy. If the number of servers grows, it will be labor intensive. Is there another way when the software itself is updated when updating the version in the repository?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vasily Bannikov, 2021-05-12
@msa6886

Since you are using bitbucket (judging by the tags), you can try its own feature - Bitbucket pipelines
. If for some reason you cannot use them, then take Teamcity/Jenkins/Gitlab/Azure pipelines/Github actions and master them :)
Well or you can write bash scripts yourself and use git hooks on the server for deployment.

I
iBird Rose, 2021-05-12
@iiiBird

there are similar libraries https://github.com/vicenteguerra/git-deploy
look for your language.
or write your own. repositories webhooks are used there. conditionally when commit and push happened - this webhook will tell you about it. and then you can already perform all the actions you need on this event.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question