31 lines
831 B
YAML
31 lines
831 B
YAML
trigger:
|
|
- dev
|
|
|
|
pool:
|
|
vmImage: "ubuntu-latest"
|
|
|
|
variables:
|
|
major: $(VERSION_MAJOR)
|
|
minor: $(VERSION_MINOR)
|
|
prefix: $[format('{0}.{1}', variables['major'], variables['minor'])]
|
|
patch: $[counter(variables['prefix'], 100)]
|
|
buildNumber: $(major).$(minor).$(patch)
|
|
|
|
resources:
|
|
repositories:
|
|
- repository: templateRepo
|
|
endpoint: cosq-network
|
|
type: github
|
|
name: cosq-network/azure-build-pipeline-templates
|
|
|
|
extends:
|
|
template: firebase-functions-deploy.yaml@templateRepo
|
|
parameters:
|
|
nodeVersion: "20"
|
|
firebaseTokenSecret: $(FIREBASE_TOKEN)
|
|
functionsWorkingDirectory: "$(Build.SourcesDirectory)/functions"
|
|
envExamplePath: "$(Build.SourcesDirectory)/functions/.env.example"
|
|
envPath: "$(Build.SourcesDirectory)/functions/.env"
|
|
buildNumber: $(buildNumber)
|
|
buildType: debug
|