Skip to content

Commit 42c3be6

Browse files
authored
chore: add tag pining instruction to TEST.md (#774)
docs only
1 parent b7aed28 commit 42c3be6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

TEST.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,24 @@ sourcegraph:
5454

5555
Make sure you test both enabled and disabled toggles. For example, if you added a new values to conditional render some templates, turn it on and off in the `override.yaml` to make sure they both work. You can also include your `override.yaml` in the `Test plan` during PR review to help others understand your testing strategy.
5656

57+
### Update the image tag
58+
59+
You have two options to target specificy Sourcegraph version. Add the below to your `override.yaml`:
60+
61+
```yaml
62+
sourcegraph:
63+
image:
64+
defaultTag: "6.10.0"
65+
useGlobalTagAsDefault: true
66+
```
67+
68+
Alternatively, you can use `sg` to update the image tags directly in the default `values.yaml`, **DO NOT COMMIT** the changes:
69+
70+
```sh
71+
cd charts/sourcegraph
72+
sg ops update-images -kind helm -pin-tag 6.10.0 -cr-username=$DOCKER_HUB_USERNAME -cr-password=$DOCKER_HUB_PERSONAL_ACCESS_TOKEN .
73+
```
74+
5775
### Inspect the entire rendered template
5876

5977
It's a good idea to inspect the rendered manifest to catch things that look off.

0 commit comments

Comments
 (0)