feat: only run apply when plan detects changes #4

Merged
benvin merged 6 commits from feat/conditional-apply into main 2026-06-11 23:32:02 +10:00
3 changed files with 0 additions and 28 deletions
Showing only changes of commit dc9f3cd595 - Show all commits
-1
View File
@@ -20,6 +20,5 @@ inputs = {
organisation = local.config.organisation
repository = local.config.repository
branch_protection = local.config.branch_protection
deploy_key = local.config.deploy_key
team = local.config.team
}
-15
View File
@@ -19,21 +19,6 @@ terraform {
lock = true
ca_file = "/etc/pki/tls/certs/ca-bundle.crt"
}
required_version = ">= 1.10"
required_providers {
gitea = {
source = "go-gitea/gitea"
version = "0.7.0"
}
woodpecker = {
source = "Kichiyaki/woodpecker"
version = "0.5.0"
}
consul = {
source = "hashicorp/consul"
version = "2.23.0"
}
}
}
EOF
}
-12
View File
@@ -64,18 +64,6 @@ variable "branch_protection" {
default = {}
}
variable "deploy_key" {
description = "Map of deploy keys to create"
type = map(object({
repository = string
organisation = string
gitea_url = string
title = string
key = string
read_only = optional(bool, true)
}))
default = {}
}
variable "team" {
description = "Map of teams to create"