Make sure you have a server set up already. You may want an instance with a decent processing power, since creating Docker containers may be a bit CPU-intensive.
There are 2 parts: configuring Docker and creating a Github workflow
Docker
Github Workflow