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
45 changes: 45 additions & 0 deletions .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: terraform

on:
pull_request:
paths:
- "**/*.tf"
- ".terraform.lock.hcl"
- "terraform.tfvars.example"
- ".github/workflows/terraform.yaml"
push:
branches:
- main
paths:
- "**/*.tf"
- ".terraform.lock.hcl"
- "terraform.tfvars.example"
- ".github/workflows/terraform.yaml"

permissions:
contents: read

concurrency:
group: terraform-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
validate:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7

- name: Set up Terraform
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3
with:
terraform_version: 1.15.2

- name: Check formatting
run: terraform fmt -check -diff

- name: Initialize without backend
run: terraform init -backend=false -lockfile=readonly

- name: Validate
run: terraform validate
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ No modules.
| <a name="input_dns_zone_name"></a> [dns\_zone\_name](#input\_dns\_zone\_name) | Cloud DNS managed zone name. | `string` | `"packages-libops-io"` | no |
| <a name="input_github_actors"></a> [github\_actors](#input\_github\_actors) | Optional GitHub actors allowed to use the provider. Leave empty to allow any actor from the approved repositories. | `set(string)` | `[]` | no |
| <a name="input_github_owner"></a> [github\_owner](#input\_github\_owner) | GitHub organization that owns the repositories allowed to publish packages. | `string` | `"libops"` | no |
| <a name="input_github_repositories"></a> [github\_repositories](#input\_github\_repositories) | Full GitHub repository names allowed to impersonate the publishing service account. | `set(string)` | <pre>[<br/> "libops/sitectl",<br/> "libops/sitectl-drupal",<br/> "libops/sitectl-isle",<br/> "libops/sitectl-libops"<br/>]</pre> | no |
| <a name="input_github_repositories"></a> [github\_repositories](#input\_github\_repositories) | Full GitHub repository names allowed to impersonate the publishing service account. | `set(string)` | <pre>[<br/> "libops/sitectl",<br/> "libops/sitectl-app-tmpl",<br/> "libops/sitectl-archivesspace",<br/> "libops/sitectl-drupal",<br/> "libops/sitectl-isle",<br/> "libops/sitectl-libops",<br/> "libops/sitectl-ojs",<br/> "libops/sitectl-omeka-classic",<br/> "libops/sitectl-omeka-s",<br/> "libops/sitectl-wp"<br/>]</pre> | no |
| <a name="input_org_id"></a> [org\_id](#input\_org\_id) | Google Cloud organization ID. | `string` | n/a | yes |
| <a name="input_package_domain"></a> [package\_domain](#input\_package\_domain) | Fully qualified domain name that will serve the package repository. | `string` | `"packages.libops.io"` | no |
| <a name="input_project_id"></a> [project\_id](#input\_project\_id) | Google Cloud project ID. | `string` | `"libops-linux-packages"` | no |
Expand Down
6 changes: 6 additions & 0 deletions terraform.tfvars.example
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
github_repositories = [
"libops/sitectl",
"libops/sitectl-app-tmpl",
"libops/sitectl-archivesspace",
"libops/sitectl-drupal",
"libops/sitectl-isle",
"libops/sitectl-libops",
"libops/sitectl-ojs",
"libops/sitectl-omeka-classic",
"libops/sitectl-omeka-s",
"libops/sitectl-wp",
]

github_actors = [
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ variable "github_repositories" {
type = set(string)
default = [
"libops/sitectl",
"libops/sitectl-app-tmpl",
"libops/sitectl-archivesspace",
"libops/sitectl-drupal",
"libops/sitectl-isle",
"libops/sitectl-libops",
"libops/sitectl-ojs",
"libops/sitectl-omeka-classic",
"libops/sitectl-omeka-s",
"libops/sitectl-wp",
]
}

Expand Down
Loading