Skip to content

Instantly share code, notes, and snippets.

@JamesDLD
Last active November 13, 2019 10:52
Show Gist options
  • Save JamesDLD/760a300c3543ccfda9b67623c1aeda26 to your computer and use it in GitHub Desktop.
Save JamesDLD/760a300c3543ccfda9b67623c1aeda26 to your computer and use it in GitHub Desktop.
#Multi-stage YAML pipeline demo.
name: $(BuildDefinitionName).$(DayOfYear)$(Rev:.r)
variables:
- name: terraform_version
value: "0.12.13"
- name: vmImageName
value: "ubuntu-latest"
- name: backend_main_secret_file_id1 # secret id located in your Azure DevOps library, file used by the following cmdlet Terraform init, plan, apply and destroy
value: "backend-main-jdld-1.json"
- name: artifact_name
value: "AzureDevops-Introduction"
resources:
repositories:
- repository: Yaml_Templates # identifier (A-Z, a-z, 0-9, and underscore)
type: git #git refers to Azure Repos Git repos
name: Template/template_pipeline #To refer to a repo in another project within the same organization, prefix the name with that project's name. For example, OtherProject/otherRepo.
ref: refs/tags/0.1.0 # ref name to use, defaults to 'refs/heads/master'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment