HelloWorld .NET with Jenkins and Docker
This repository contains:
HelloWorldApp- .NET 10 console appHelloWorldApp.Tests- xUnit testsJenkinsfile- Jenkins pipeline to build, test, containerize and push imageHelloWorldApp/Dockerfile- multi-stage .NET Docker build
Local build + test
dotnet test HelloWorld.slnx
Build Docker image locally
cd HelloWorldApp
docker build -t your-registry.example.com/helloworldapp:latest .
Run Docker image locally
docker run --rm your-registry.example.com/helloworldapp:latest
Languages
C#
89.3%
Dockerfile
10.7%