DevOpsExamples
A repo to show you how to use a private NuGet feed to restore packages in Azure DevOps, GitHub Actions, GitLab CI and AppCenter.
Install / Use
/learn @LanceMcCarthy/DevOpsExamplesREADME
DevOps - Pipeline and Workflow Examples
This repository contains a rich set of CI-CD demos where I show you how to:
- Connect to private nuget feeds; Azure, GitHub packages, and custom (eg Telerik).
- Build .NET apps and publish to a container registry; Docker, Azure, GitHub, etc.
Although I use Telerik's NuGet server because I have a license, these demos are good for any private feed type; just use your source URL and credentials instead!
Table of Contents
- CI Systems
- Build Badges
- Docker Examples
- Video: Authenticating in Azure DevOps
- Tips and Troubleshooting
- Related Blog Posts
CI Systems
| System | CI/CD file(s) | |---------------|------------------| | GitHub Actions | .github/workflows | | Azure DevOps (YAML) | azure-pipelines.yml | | Azure DevOps (classic) | click build badge | | GitLab CI/CD | .gitlab-ci.yml ↗|
Badges
| Project | GitHub Actions | Azure DevOps | GitLab CI |
|---------|--------------|----------------|-----------|
| .NET MAUI | |
|
|
| ASP.NET Core |
|
|
|
| ASP.NET Blazor |
|
|
|
| WPF (
net48) | |
|
|
| WinForms (
net48) | |
|
|
| Console |
|
|
|
| WinUI 3 |
|
|
|
| Kendo Angular |
|
|
|
| ASP.NET AJAX (
net48) | |
|
|
All Azure DevOps status badges are for classic pipelines, except the
Consoleproject, which uses Azure DevOps YAML pipelines.
Docker Examples
This repo also contains examples on how to build and publish a Telerik powered .NET project as a container image. The image names below are published to the lancemccarthy Docker Hub user, but the approach also works for any container registry.
| Image | GitHub Action | Dockerfile |
|--------------|---------------|------------|
| aspnetcore-reporting-from-centosbase | | link |
|
aspnetcore-reporting-from-msftbase | | link |
|
myblazorapp | | link |
[!NOTE] When creating a container, forward port 8080 to the host. For example:
- Run
docker run -d -p 9999:8080 lancemccarthy/myblazorapp:latest- Visit site on http://localhost:9999
Videos
Azure DevOps with Telerik NuGet Server
The following 4 minute video takes you though all the steps on adding a private NuGet feed as a Service Connection and consuming that service in three different pipeline setups.
[