Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: separate nix rule for cli release build
We would like to include a standard coordinator policy hash into cli releases, so that the coordinator can be deployed separately and is still verified by the cli. We cannot embed a default coordinator policy into the existing build rule: * To generate a policy hash, we need to build the coordinator, publish it as an OCI image and run genpolicy on it. * To embed the hash in the binary, it needs to go into the build inputs. * If it's in the build inputs, the output store location changes. * If the output store location changes, the OCI layer (and thus the required policy) changes. On the other hand, we would like to keep the multi-binary build rule for development, so we introduce a new build rule exclusively for cli releases, and only that rule consumes the coordinator policy hash as input. Co-authored-by: Paul Meyer <[email protected]>
- Loading branch information