https://github.com/telekom-mms/terraform-azuredevops-build
A Terraform module that manages the build resources from the azuredevops provider.
https://github.com/telekom-mms/terraform-azuredevops-build
azuredevops build-definition terraform
Last synced: 2 months ago
JSON representation
A Terraform module that manages the build resources from the azuredevops provider.
- Host: GitHub
- URL: https://github.com/telekom-mms/terraform-azuredevops-build
- Owner: telekom-mms
- License: mpl-2.0
- Created: 2023-07-20T12:33:27.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-28T11:26:38.000Z (9 months ago)
- Last Synced: 2025-02-05T05:41:19.739Z (4 months ago)
- Topics: azuredevops, build-definition, terraform
- Language: HCL
- Homepage: https://telekom-mms.github.io/terraform-template
- Size: 26.4 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# build
This module manages the microsoft/azuredevops build resources, see https://registry.terraform.io/providers/microsoft/azuredevops/latest/docs.
For more information about the module structure see https://telekom-mms.github.io/terraform-template.
_<-- This file is autogenerated, please do not change. -->_
## Requirements
| Name | Version |
|------|---------|
| terraform | >=1.5 |
| azuredevops | >=0.6.0 |## Providers
| Name | Version |
|------|---------|
| azuredevops | >=0.6.0 |## Resources
| Name | Type |
|------|------|
| azuredevops_build_definition.build_definition | resource |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| build_definition | Resource definition, default settings are defined within locals and merged with var settings. For more information look at [Outputs](#Outputs). | `any` | `{}` | no |## Outputs
| Name | Description |
|------|-------------|
| build_definition | Outputs all attributes of resource_type. |
| variables | Displays all configurable variables passed by the module. __default__ = predefined values per module. __merged__ = result of merging the default values and custom values passed to the module |## Examples
Minimal configuration to install the desired resources with the module
```hcl
module "core" {
source = "registry.terraform.io/telekom-mms/core/azuredevops"
project = {
mms = {}
}
}module "build" {
source = "registry.terraform.io/telekom-mms/build/azuredevops"
build_definition = {
dmc = {
project_id = module.core.project["mms"].id
repository = {
repo_id = "telekom-mms/docker-management-container"
repo_type = "GitHub"
yml_path = "examples/pipeline/azure-devops.yml"
}
}
}
}
```Advanced configuration to install the desired resources with the module
```hcl
data "azuredevops_git_repository" "dmc" {
project_id = module.core.project["mms"].id
name = "dmc"
}module "core" {
source = "registry.terraform.io/telekom-mms/core/azuredevops"
project = {
mms = {}
}
}module "taskagent" {
source = "registry.terraform.io/telekom-mms/taskagent/azuredevops"
variable_group = {
dmc = {
project_id = module.core.project["mms"].id
variable = {
name = {
value = "mms-mgmt-dmc"
}
}
}
}
}module "build" {
source = "registry.terraform.io/telekom-mms/build/azuredevops"
build_definition = {
dmc = {
project_id = module.core.project["mms"].id
variable_groups = [
module.taskagent.variable_group["dmc"].id
]
repository = {
repo_id = data.azuredevops_git_repository.dmc.id
repo_type = "TfsGit"
yml_path = "examples/pipeline/azure-devops.yml"
}
ci_trigger = {
override = {
branch_filter = {
include = ["main"]
}
}
}
variable = {
version = {
value = "latest"
}
}
}
}
}
```