the existing infrastructure

This commit is contained in:
Platform team
2026-11-02 09:55:39 +00:00
commit b2c2460a52
21 changed files with 537 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
# Applies envs/prod when main changes and reports the apply to Quai: spec.runner.pipelines
# names it (kind: apply), and requests merged to main wait for it.
trigger:
branches:
include: [main]
paths:
include: [envs/prod, modules]
pr: none
resources:
repositories:
- repository: quai
type: github
name: damhau/quai
endpoint: github # a GitHub service connection
variables:
- group: quai # quaiUrl, quaiRepository and the secret quaiRunToken
pool:
vmImage: ubuntu-latest
steps:
- checkout: self
- script: |
set -euo pipefail
terraform -chdir=envs/prod init -input=false
terraform -chdir=envs/prod apply -input=false -auto-approve
displayName: terraform apply
- template: deploy/runners/azure-pipelines/quai-report.yml@quai
parameters: { stack: envs/prod, kind: apply }
+28
View File
@@ -0,0 +1,28 @@
# Plans envs/prod on each pull request to main and reports the plan to Quai: a "Build
# validation" branch policy runs it, and spec.runner.pipelines names it (kind: plan).
trigger: none
pr: none # run by the branch policy
resources:
repositories:
- repository: quai
type: github
name: damhau/quai
endpoint: github # a GitHub service connection
variables:
- group: quai # quaiUrl, quaiRepository and the secret quaiRunToken
pool:
vmImage: ubuntu-latest
steps:
- checkout: self
- script: |
set -euo pipefail
terraform -chdir=envs/prod init -input=false
terraform -chdir=envs/prod plan -input=false -out=tfplan
terraform -chdir=envs/prod show -json tfplan > plan.json
displayName: terraform plan
- template: deploy/runners/azure-pipelines/quai-report.yml@quai
parameters: { stack: envs/prod, kind: plan, plan: plan.json }