Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oskardudycz/azurepipelinessamples
Azure Pipeline Samples - sample configurations with explanation and useful links
https://github.com/oskardudycz/azurepipelinessamples
azure-pipelines azuredevops dotnet samples yml
Last synced: about 1 month ago
JSON representation
Azure Pipeline Samples - sample configurations with explanation and useful links
- Host: GitHub
- URL: https://github.com/oskardudycz/azurepipelinessamples
- Owner: oskardudycz
- License: mit
- Created: 2020-02-22T10:59:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-09T15:29:48.000Z (6 months ago)
- Last Synced: 2024-10-13T23:00:14.539Z (about 1 month ago)
- Topics: azure-pipelines, azuredevops, dotnet, samples, yml
- Language: C#
- Homepage: https://oskardudycz.github.io/AzurePipelinesSamples/
- Size: 71.5 MB
- Stars: 27
- Watchers: 3
- Forks: 12
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
![Twitter Follow](https://img.shields.io/twitter/follow/oskar_at_net?style=social) [![Github Sponsors](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&link=https://github.com/sponsors/oskardudycz/)](https://github.com/sponsors/oskardudycz/) [![blog](https://img.shields.io/badge/blog-event--driven.io-brightgreen)](https://event-driven.io/)
# Azure Pipelines Samples
Sample configurations with explanation and useful links.## Support
Feel free to [create an issue](https://github.com/oskardudycz/EventSourcing.NetCore/issues/new) if you have any questions or request for more explanation or samples. I also take **Pull Requests**!
💖 If this repository helped you - I'd be more than happy if you **join** the group of **my official supporters** at:
👉 [Github Sponsors](https://github.com/sponsors/oskardudycz)
## Sample Flow - Library
### 1. Build
![Build](Library/assets/01_build_step.png)
### 2. Test
![Build](Library/assets/02_test_step.png)
### 3. Publish NuGet
![Build](Library/assets/03_publish_step.png)
### 4. Contract test with prerelease NuGet
![Build](Library/assets/04_contract_tests_step.png)
### 5. Release NuGet
![Build](Library/assets/05_release_step.png)
### 6. Whole flow
![Build](Library/assets/Library-Flow-Diagram.png)
See full configuration in the [azure-pipelines.yml](Library/azure-pipelines.yml)
## Sample Flow - Selenium-based Web E2e Tests
![Build](Selenium/assets/Selenium-Flow-Diagram.png)
## Sample Flow - Web App with different APIs (or different versions of the same API) compatibility check
![Build](WebWithApiCompatibility/assets/WebWithApiCompatibility-Flow-Diagram.png)
## Sample Flow - Api E2E tests with Docker
![Build](ApiE2ETestsWithDocker/assets/ApiE2ETestsWithDocker-Flow-Diagram.png)
## Other Resources
1. Integrate GitHub repository with AzureDevops: https://www.azuredevopslabs.com/labs/azuredevops/github-integration/
2. Setup AzureDevops for .NET Core build:
- https://docs.microsoft.com/en-us/azure/devops/pipelines/ecosystems/dotnet-core?view=azure-devops
- https://www.hanselman.com/blog/SettingUpAzureDevOpsCICDForANETCore31WebAppHostedInAzureAppServiceForLinux.aspx
- https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/dotnet-core-cli?view=azure-devops
- https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/package/nuget?view=azure-devops3. Connect with NuGet feed
- https://docs.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml4. Publish NuGet package
- https://docs.microsoft.com/en-us/azure/devops/pipelines/artifacts/nuget?view=azure-devops&tabs=yaml
- https://stevenknox.net/auto-versioning-nuget-packages-in-azure-devops-pipelines/
- https://kasunkodagoda.com/2019/04/03/hidden-gems-in-azure-pipelines-creating-your-own-rev-variable-using-counter-expression-in-azure-pipelines/5. Multi-platform build pipeline
- https://docs.microsoft.com/en-us/azure/devops/pipelines/get-started-multiplatform?view=azure-devops6. Copy files between jobs:
- https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/copy-files?view=azure-devops&tabs=yaml7. Conditions:
- https://docs.microsoft.com/en-us/azure/devops/pipelines/process/conditions?view=azure-devops&tabs=yaml8. Checking out multiple repos:
- https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/multi-repo-checkout?view=azure-devops9. Artifacts tasks:
- https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/publish-build-artifacts?view=azure-devops
- https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/download-build-artifacts?view=azure-devops10. Templates:
- https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devopsI found an issue or I have a change request
--------------------------------
Feel free to create an issue on GitHub. Contributions, pull requests are more than welcome!**AzurePipelinesSamples** is Copyright © 2020 [Oskar Dudycz](http://oskar-dudycz.pl) and other contributors under the [MIT license](LICENSE).