Skip to content

Commit 5d8990e

Browse files
committed
Add a section in README about updating terraform config for self-hosted runners.
1 parent 9146b2e commit 5d8990e

File tree

1 file changed

+20
-1
lines changed
  • .github/gh-actions-self-hosted-runners/arc

1 file changed

+20
-1
lines changed

.github/gh-actions-self-hosted-runners/arc/README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,26 @@ terraform init -backend-config="bucket=bucket_name"
9696
terraform apply -var-file=environments/environment_name.env
9797
```
9898

99+
# Updating
100+
If you need to update the configuration (e.g. upgrading the github runner image, resource settings, etc), follow the steps below:
101+
102+
1. From this directory, login to your gcloud account that you created the bucket with and init terraform. Replace bucket_name with the bucket for storing terraform state, e.g. `beam-arc-state`.
103+
```
104+
gcloud auth login
105+
gcloud auth application-default login
106+
terraform init -backend-config="bucket=bucket_name"
107+
```
108+
109+
2. Terraform plan. Replace environment_name.env with the file under environments, e.g. `beam.env`. Fix config problems if any.
110+
```
111+
terraform plan -var-file=environments/environment_name.env
112+
```
113+
114+
3. Terraform apply. Replace environment_name.env with the file under environments, e.g. `beam.env`.
115+
```
116+
terraform apply -var-file=environments/environment_name.env
117+
```
118+
99119
# Maintanance
100120

101121
- To access the ARC k8s cluster call the `get_kubeconfig_command` terraform output and run the command
102-

0 commit comments

Comments
 (0)