thetechguy61705
thetechguy61705

Reputation: 144

GitHub automatic deploying to an Ubuntu Server

I am trying to host a Discord bot for my friends. We have a GitHub respository that we all have access to and push the code to. I am trying to do the following

I am running Ubuntu 18.04 Server

Anybody have any suggestions on how to do this?

Upvotes: 1

Views: 1880

Answers (1)

Bahrom
Bahrom

Reputation: 4862

You're looking for github webhooks. You'll likely need to set up a web server on that Ubuntu box that github can ping when certain events are triggered in your repo.

The server can then verify that the request came from github (see securing your webhooks), and run some script (this can be a basic bash script) that performs your site maintenance (backup, pull, redeploy, etc.).

Upvotes: 2

Related Questions