Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ozbillwang/azure-devops-pipeline-best-practices
A real sample with best practices on how you can quickly manage CICD pipeline with Azure DevOps Pipeline
https://github.com/ozbillwang/azure-devops-pipeline-best-practices
azure azure-devops best-practices devops
Last synced: 27 days ago
JSON representation
A real sample with best practices on how you can quickly manage CICD pipeline with Azure DevOps Pipeline
- Host: GitHub
- URL: https://github.com/ozbillwang/azure-devops-pipeline-best-practices
- Owner: ozbillwang
- Created: 2021-05-15T00:55:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-25T22:37:33.000Z (over 3 years ago)
- Last Synced: 2024-11-10T19:52:11.825Z (3 months ago)
- Topics: azure, azure-devops, best-practices, devops
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Azure DevOps Pipeline Best Practices 🌐
A real sample with best practices on how you can quickly manage CICD pipeline with Azure DevOps Pipeline
### Prerequisite
* Azure subscription account - You have account on https://devops.azure.com/. If not, register first.
* [Service connection](https://docs.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml) - Create a service connection between pipeline and Azure subscription, so you can access and deploy resources to it. create with Azure resource manager, type is subscription.
* [Azure Key Vault](https://azure.microsoft.com/en-au/services/key-vault/) - create a Azure Key Vault named `keyvault69c14bbf`, post-fix is the first 8 bit of its Subscription ID.In this key vault, you need two keys:
```
Azure-Client-Id
Azure-Client-Secret
```* Resource group - create nominated resource group. Otherwise, make sure you need create it in pipeline.
### Features in this pipeline
* auto define which environment file to be choiced. For non-prod env, using dev.yaml. For prod env, using prod.yaml.
* only auto trigger build on develop branch, if new commit is pushed
* no need save secrets in source codes, reference with its Azure KeyVault name.
$ create tasks via its assistant when you edit the pipeline on Azure DevOps UI to save your typing.