An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# Docker push GitHub

[![docker push](https://github.com/Arnab-Developer/DockerPushGitHub/actions/workflows/docker-push.yml/badge.svg)](https://github.com/Arnab-Developer/DockerPushGitHub/actions/workflows/docker-push.yml)
[![pr on main](https://github.com/Arnab-Developer/DockerPushGitHub/actions/workflows/pr-on-main.yml/badge.svg)](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-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