Example .NET app to build and push Docker image to DockerHub with GitHub workflow.
DockerHub repo: https://hub.docker.com/r/45862391/docker-push-github
Workflow:
- When pull request to main then build and test the code.
- When push to main or merge a pull request to main then build docker image and push to dockerhub.
- Console app
- Unit test
- .NET 5
- C# 9
- xUnit for unit testing
- Visual Studio 2019