Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

Tuxcrate organization profile and shared GitHub configuration.

The [`infrastructure/`](infrastructure/) directory contains OpenTofu configuration for GitHub repository metadata and branch protection across the organization.
See the [GitHub infrastructure guide](https://tuxcrate.com/maintainers/github-infrastructure/) for repository metadata and branch-protection management.
17 changes: 8 additions & 9 deletions infrastructure/repositories.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ locals {
homepage_url = "https://tuxcrate.com/maintainers/container-releases/"
required_checks = toset(["test"])
}
"renovate-config" = {
description = "Shared Renovate configuration for Tuxcrate repositories"
homepage_url = "https://tuxcrate.com/maintainers/dependency-updates/"
required_checks = toset(["validate"])
}
}
container_repos = toset([
"gallery-dl",
Expand All @@ -21,10 +26,6 @@ locals {
"sonarr",
"zrepl",
])
container_release_metadata = {
for repo in local.container_repos :
repo => yamldecode(file("${path.module}/../../${repo}/meta.yaml"))
}
container_metadata = {
for repo in local.container_repos :
repo => yamldecode(regex(
Expand All @@ -38,11 +39,9 @@ locals {
homepage_url = "https://tuxcrate.com/containers/${repo}/"
description = local.container_metadata[repo].description
topics = concat(local.container_metadata[repo].topics, ["tuxcrate"])
# Match the shared workflow's check names for every declared track.
required_checks = setunion(toset(["container / plan"]), toset([
for track in local.container_release_metadata[repo].tracks :
"container / pull-request (${track.name})"
]))
# The aggregate requires planning and every active track build to succeed.
# Dormant prerelease tracks do not create matrix checks.
required_checks = toset(["container / pull-request-check"])
}
})
}
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/terraform.tfstate

Large diffs are not rendered by default.