You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -372,6 +372,8 @@ For the full list of `create_gitops_prs` command line options, run:
372
372
bazel run @rules_gitops//gitops/prer:create_gitops_prs
373
373
```
374
374
375
+
Alternatively, you can use the `create_gitops_prs` rule that references `gitops` targets. You can run the target to template yaml & image push in parallel.
Copy file name to clipboardExpand all lines: gitops/prer/create_gitops_prs.go
+56-10Lines changed: 56 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,10 @@ type Config struct {
58
58
PRBodystring
59
59
DeploymentBranchSuffixstring
60
60
61
+
// create_gitops_prs rule
62
+
ResolvedBinariesSliceFlags
63
+
ResolvedPushesSliceFlags
64
+
61
65
// Dependencies
62
66
DependencyKinds []string
63
67
DependencyNames []string
@@ -92,6 +96,10 @@ func initConfig() *Config {
92
96
flag.StringVar(&cfg.PRBody, "gitops_pr_body", "", "PR body message")
93
97
flag.StringVar(&cfg.DeploymentBranchSuffix, "deployment_branch_suffix", "", "Suffix for deployment branch names")
94
98
99
+
// create_gitops_prs rule sets these when used with `bazel run`
100
+
flag.Var(&cfg.ResolvedBinaries, "resolved_binary", "list of resolved gitops binaries to run. Can be specified multiple times. format is releasetrain:cmd/binary/to/run/command. Default is empty")
101
+
flag.Var(&cfg.ResolvedPushes, "resolved_push", "list of resolved push binaries to run. Can be specified multiple times. format is cmd/binary/to/run/command. Default is empty")
102
+
95
103
// Dependencies
96
104
varkinds, names, attrsSliceFlags
97
105
flag.Var(&kinds, "gitops_dependencies_kind", "Dependency kinds for GitOps phase")
0 commit comments