Skip to content

Files

Latest commit

ea7e57e · Apr 5, 2021

History

History
26 lines (17 loc) · 872 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 872 Bytes

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