@@ -13,18 +13,14 @@ import (
13
13
14
14
// updateHelm runs commands in the helm-charts repo in order to update the cockroachdb version.
15
15
func updateHelm (workDir string , version string ) error {
16
- commands := []* exec.Cmd {
17
- exec .Command ("bazel" , "build" , "//build" ),
18
- // Helm charts use the version without the "v" prefix, but the bumper trims it if present.
19
- exec .Command ("sh" , "-c" , fmt .Sprintf ("$(bazel info bazel-bin)/build/build_/build bump %s" , version )),
20
- }
21
- for _ , cmd := range commands {
22
- cmd .Dir = workDir
23
- out , err := cmd .CombinedOutput ()
24
- if err != nil {
25
- return fmt .Errorf ("failed running '%s' with message '%s': %w" , cmd .String (), string (out ), err )
26
- }
27
- log .Printf ("ran '%s': %s\n " , cmd .String (), string (out ))
16
+ // Helm charts use the version without the "v" prefix, but the bumper trims it if present.
17
+ cmd := exec .Command ("sh" , "-c" , fmt .Sprintf ("make bump/%s" , version ))
18
+ cmd .Dir = workDir
19
+ out , err := cmd .CombinedOutput ()
20
+ if err != nil {
21
+ return fmt .Errorf ("failed running '%s' with message '%s': %w" , cmd .String (), string (out ), err )
28
22
}
23
+ log .Printf ("ran '%s': %s\n " , cmd .String (), string (out ))
24
+
29
25
return nil
30
26
}
0 commit comments