Skip to content

Commit

Permalink
docs: infra-as-code usage
Browse files Browse the repository at this point in the history
  • Loading branch information
rcwbr committed Sep 26, 2024
1 parent b548d40 commit 3e2f264
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Empty file added .iac/terragrunt.hcl
Empty file.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,20 @@ Build the image:
```bash
REGISTRY=ghcr.io/rcwbr/ IMAGE_NAME=release-it-docker docker buildx bake --file github-cache-bake.hcl 'https://github.com/rcwbr/dockerfile-partials.git#main'
```

### Repo configuration

Configuration for this repo is managed using [OpenTofu](https://opentofu.org/) with a [GCS state backend](https://opentofu.org/docs/language/settings/backends/gcs/). The configuration is managed in the `.iac` folder, and its deployment is automated through the GitHub Actions workflow.

#### Repo configuration provisioning

Initial provisioning of resources to enable infrastructue-as-code automation requires the following steps:

1. Prepare a GCS project
1. Retrieve a GCP access token
1. Plan and apply the provisioning resources from the IaC config using the `-target` arg
1. Trigger a `main` branch workflow to apply the remaining resources via GitHub Actions

#### Repo configuration workflow

TODO

0 comments on commit 3e2f264

Please sign in to comment.