Skip to content

Commit e1763d1

Browse files
committed
releaseBins: add per-env submit-api-config.json
1 parent cbb2d1f commit e1763d1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nix/binary-release.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ let
3535
} // lib.optionalAttrs (env.nodeConfig ? CheckpointsFile) {
3636
CheckpointsFile = "checkpoints.json";
3737
};
38+
3839
nodeConfig = pkgs.writeText
3940
"config.json"
4041
(builtins.toJSON
@@ -45,6 +46,10 @@ let
4546
(builtins.toJSON
4647
(env.nodeConfigLegacy // genesisAttrs));
4748

49+
submitApiConfig = pkgs.writeText
50+
"submit-api-config.json"
51+
(builtins.toJSON env.submitApiConfig);
52+
4853
tracerConfig = pkgs.writeText
4954
"tracer-config.json"
5055
(builtins.toJSON env.tracerConfig);
@@ -64,6 +69,7 @@ let
6469
mkdir -p "share/${name}"
6570
jq . < "${nodeConfig}" > share/${name}/config.json
6671
jq . < "${nodeConfigLegacy}" > share/${name}/config-legacy.json
72+
jq . < "${submitApiConfig}" > share/${name}/submit-api-config.json
6773
jq . < "${tracerConfig}" > share/${name}/tracer-config.json
6874
jq . < "${peerSnapshot}" > share/${name}/peer-snapshot.json
6975
jq '.peerSnapshotFile = "peer-snapshot.json"' < "${topologyConfig}" > share/${name}/topology.json

0 commit comments

Comments
 (0)