Create setup target
Rolling out the component is a pain as it often requires changes to Bazel run commands.
I propose a bazelisk run @ci-component-bazelisk
target that writes the following run command files:
.bazelrc.component
- `.bazelrc.ci.component
These can then be imported in .bazelrc
and .bazelrc.ci
which can contain any custom flags for the project.
That target should also validate that the .gitlab-ci.yml
is using the correct version of the component.
This should be implemented as a //setup
target that has a rc
and ci
sub-command for updating the two parts.
When ran without a sub-command it should update both.