https://github.com/arnab-developer/dockerpushgithub
Build and push Docker image with GitHub workflow.
https://github.com/arnab-developer/dockerpushgithub
docker docker-hub dotnet-5 github-action github-workflow
Last synced: 3 months ago
JSON representation
Build and push Docker image with GitHub workflow.
- Host: GitHub
- URL: https://github.com/arnab-developer/dockerpushgithub
- Owner: Arnab-Developer
- License: mit
- Created: 2021-02-20T13:02:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-22T04:49:24.000Z (over 3 years ago)
- Last Synced: 2025-01-17T02:24:17.274Z (5 months ago)
- Topics: docker, docker-hub, dotnet-5, github-action, github-workflow
- Language: C#
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker push GitHub
[](https://github.com/Arnab-Developer/DockerPushGitHub/actions/workflows/docker-push.yml)
[](https://github.com/Arnab-Developer/DockerPushGitHub/actions/workflows/pr-on-main.yml)Example .NET app to build and push Docker image to DockerHub with GitHub workflow.
DockerHub repo:
https://hub.docker.com/r/45862391/docker-push-githubWorkflow:
- 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