Deploy a Go Project to Docker hub by Github Action
In this article, we will create a simple golang application CI/CD process and push it to Docker hub by github action. Finally, will illustrate an example of how to use the terraform and docker-compose to deploy a local docker environment.
Create Docker hub repository
First, create a repository on Docker hub, here we create a repo name adon988/go-github-action-helloworld
Generate Github Actions workflow
Create a project folder .github/workflows/
and add github actions yaml file