bazel: allow custom container_prefix (#1693)

* build: allow custom container registry

* build: fix .bazeloverwriterc import
This commit is contained in:
3u13r 2023-04-27 11:52:02 +02:00 committed by GitHub
parent 12216ea997
commit 1bdf410b52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 192 additions and 257 deletions

View file

@ -28,7 +28,9 @@ mkdir build
cd build
# build required binaries for a dev build
# and symlink them into the current directory
bazel run //:devbuild
# also push the built container images
# After the first run, set the pushed imaged to public.
bazel run //:devbuild --container_prefix=ghcr.io/USERNAME/constellation
./constellation ...
# modify code
# rerun to ensure that all binaries are up to date
@ -36,6 +38,12 @@ bazel run //:devbuild
./constellation ...
```
Overwrite the default container_prefix in the `.bazeloverwriterc` in the root of the workspace:
```bazel
# cat .bazeloverwriterc
build --container_prefix=ghcr.io/USERNAME
```
Bazel build:
```sh