Skip to content

Arnab-Developer/DockerPushGitHub

Repository files navigation

Docker push GitHub

docker push pr on main

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.

Solution structure

  • Console app
  • Unit test

Tech stack

  • .NET 5
  • C# 9
  • xUnit for unit testing
  • Visual Studio 2019

Releases

No releases published

Packages

No packages published