I am trying to set this up for a while but I am now completely clueless on how to do this.
What I have and what am trying to do:
I have a repo at github where 2 (or more) developers will push the changes.
I have a server setup on DigitalOcean that has bare git repo
On the digital ocean bare repo I have a post-recieve hook that performs checkout and places the code in a place from where it gets served (through a server)
From my local machine I am able to push the changes to the Digital Ocean (through SSH)
Currently after any changes are merged in master, I pull the changes from github and manually push them to Digital Ocean remote
This is what I want to automate through github actions.
So when any change is merged in master, I want the action to perform a push to my server’s remote repo.
Is this possible using actions ? If yes, where do I even begin ? where and how would I add the ssh keys - provided that DO has a somewhat complicated method to add new keys - so I would like the setup to be done only one time.
the more I think about it, it looks like I am missing some point here. Is it possible to do a different setup for what I want to achive?