Skip to content

Commit d9c1fc1

Browse files
committed
Update the deployment instructions
Include information about the key vault. Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
1 parent 9e6d28b commit d9c1fc1

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

github/azure-self-hosted-runners/README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,15 @@ The application is deployed as an [ACI](https://azure.microsoft.com/en-us/produc
2222

2323
### Deployment
2424

25-
Github tokens (see above) need to be passed to Garm via tf variables, either by creating a `tf/terraform.tfvars` or specifying it on the cli:
25+
Github tokens (see above) are passed to Garm via Azure Key Vault secrets. So first you should put the tokens as secrets in
26+
a Key Vault. The Key Vault id is then passed to terraform either by creating a `tf/terraform.tfvars` or specifying it on the cli:
2627

2728
```hcl
28-
github_tokens = [
29-
{
30-
name = "some name"
31-
token = "abc123"
32-
},
33-
]
29+
github_token_key_vault_id = "the vault id"
3430
```
3531

3632
```bash
37-
terraform apply -var='github_tokens=[{"name":"some name","token":"abc123"}]'
33+
terraform apply -var='github_token_key_vault_id="the vault id"'
3834
```
3935

4036
## Configuration

0 commit comments

Comments
 (0)