I have gotten pretty close with my template and my deploy yaml that uses it. However I am getting to errors
Unexpected value 'variables' Unexpected value 'stages'
I am sure I have the syntax wrong, but I can't for the life of me understand why.
Here is the start of my template
#File: template.yml
parameters:
- name: repositoryName
type: string
default: ''
variables:
tag: '$(Build.BuildId)'
buildVmImage: 'ubuntu-latest'
deployPool: 'deploy-pool'
stages:
- stage: Build
jobs:
- job: Build
pool:
vmImage: $(buildVmImage)
steps:
- checkout: self
submodules: recursive
And here is the deploy yaml that uses it
# Repo: Organization/Project
# File: azure-pipelines.yml
trigger:
- develop
- next
- master
resources:
repositories:
- repository: template
type: git
name: AzureDevOps/AzureDevOps
jobs:
- template: template.yml@template
parameters:
repositoryName: 'exampleName'
any help would be appreciated. I am sure it's right in front of my nose but I've been struggling for days so I think it's time to ask for help.