Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
epiccoolguy committed Feb 14, 2024
1 parent 2403004 commit a034c63
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,25 @@ Set up integration between Github and Google Cloud Platform.

## Installation

Instructions on how to install and set up the project.
1. Temporarily delete `backend.tf` so that Terraform can initialize locally.
2. Run `terraform init`
3. Run `terraform apply`
4. Create a `gcs.conf` file that contains the GCS bucket name output by Terraform during apply:

```conf
bucket = "tfstate-xxxx"
```

5. Restore `backend.tf`
6. Run `terraform init` to migrate the Terraform state to GCS.
7. Create a fine-grained personal access token on Github with access to this repository and the following repository permissions:
- Read access to metadata
- Read and Write access to secrets
8. Store the Github personal access token as secret in this repository:

```sh
echo "github_pat_xxx" | gh secret set GH_SECRETS_TOKEN --repo="epiccoolguy/gh-gcp"
```

## Usage

Expand Down

0 comments on commit a034c63

Please sign in to comment.