Skip to content

Commit b62c3db

Browse files
committed
website: deploy via spire
1 parent fd958a2 commit b62c3db

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

platform/spire/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ py_binary(
1717
"//upload:uploadlib",
1818
"//user-grant:kubelib",
1919
"//version:versionlib",
20+
"//website:kubelib",
2021
],
2122
main = "__main__.py",
2223
)

platform/spire/src/deploy.py

+7
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,17 @@ def launch_user_grant(export: bool=False):
8989
}, export=export)
9090

9191

92+
@command.wrap
93+
def launch_website(export: bool=False):
94+
"deploy the specifications to run the self-hosting website"
95+
launch_spec("//website:kubernetes.yaml", export=export)
96+
97+
9298
main_command = command.Mux("commands to deploy systems onto the kubernetes cluster", {
9399
"flannel": launch_flannel,
94100
"flannel-monitor": launch_flannel_monitor,
95101
"dns-addon": launch_dns_addon,
96102
"dns-monitor": launch_dns_monitor,
97103
"user-grant": launch_user_grant,
104+
"website": launch_website,
98105
})

platform/spire/src/seq.py

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ def sequence_supervisor(ops: command.Operations, skip_verify_keygateway: bool=Fa
5656
else:
5757
ops.add_operation("skip pre-deploying user-grant (not configured)", lambda: None)
5858

59+
ops.add_command(deploy.launch_website)
60+
5961
for node in config.nodes:
6062
if node.kind == 'supervisor':
6163
ops.add_subcommand(infra.infra_sync, node.hostname)

0 commit comments

Comments
 (0)