terraform-example-foundation icon indicating copy to clipboard operation
terraform-example-foundation copied to clipboard

FR: Add Azure DevOps CI/CD repository and pipeline support option

Open obriensystems opened this issue 1 year ago • 1 comments

TL;DR

assigned to https://github.com/fmichaelobrien PR developed in fork https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/issues/399

ER:

The default CI/CD repo/pipeline around Cloud Build and Cloud Source Repositories works well. There is a need for Azure DevOps (ADO) integration as a CI/CD option. A large proportion of our Canadian Public Sector clients (provincial, federal, crown corporation) use ADO as their repository and build system.

  • https://learn.microsoft.com/en-us/azure/devops/organizations/billing/overview?view=azure-devops

Work:

similar to our github/gitlab/terraform-cloud and jenkins support on top of default CB/CSR support - add versions of the following artifacts

  • specific agent requirements and terraform module like
  • https://github.com/terraform-google-modules/terraform-example-foundation/blob/master/0-bootstrap/modules/jenkins-agent/README.md#Requirements
  • specific 0-bootstrap and subsequent READMEs like
  • https://github.com/terraform-google-modules/terraform-example-foundation/blob/master/0-bootstrap/README-Jenkins.md
  • section in the root README
  • https://github.com/terraform-google-modules/terraform-example-foundation/blob/master/README.md#0-bootstrap
  • ADO pipeline yaml for plan and apply like
  • https://github.com/terraform-google-modules/terraform-example-foundation/blob/master/build/gitlab-ci.yml

Terraform Resources

No response

Detailed design

No response

Additional information

No response

obriensystems avatar Apr 27 '24 16:04 obriensystems

Test terraform 1.3.10 image in Azure Devops

Screenshot 2024-04-27 at 18 49 14

via azure-pipeline.yml

trigger:
- main

pool:
  vmImage: ubuntu-latest
- script: |
    docker run obrienlabs/terraform-example-foundation-ado --version 

fmichaelobrien avatar Apr 27 '24 23:04 fmichaelobrien

Closing - will not be adding Azure DevOps. Swapping out CSR is an H2 roadmap item

sleighton2022 avatar May 28 '24 15:05 sleighton2022

All good, I am working the ADO pr patch as an additional customer requested option.

fmichaelobrien avatar May 28 '24 15:05 fmichaelobrien