Skip to content

carlin-q-scott/azure-devops-pipeline-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Azure DevOps Pipeline Templates

This repository has Azure DevOps Pipeline Templates for performing various operations.

You must add a repository reference to this repository in your azure-pipelines.yml before you can reference the teamplates contained within:

resources:
  repositories:
    - repository: carlin
      type: github
      name: carlin-q-scott/azure-devops-pipeline-templates
      # ref: any git ref, such as commit hash to avoid changes to your pipeline

Kube Control (kubectl)

This template allows you to manage your Azure Kubernetes Service cluster with Azure RBAC enabled.

example reference:

parameters:
- name: azureSubscriptionEndpoint
  type: string
  default: the name of your Azure Resource Manager connection that you've granted admin access to your cluster

steps:
- template: /steps/kubectl.yaml@carlin
  parameters:
    displayName: Deploy to $(cluster) cluster
    azureSubscriptionEndpoint: ${{ parameters.azureSubscriptionEndpoint }}
    azureResourceGroup: $(resourceGroup)
    kubernetesCluster: $(cluster)
    inlineScript: |
      echo "Applying manifests to $(cluster) cluster"
      kubectl apply -k manifests/$(Environment.Name)

About

Azure DevOps Pipeline Templates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published