Skip to content

Commit

Permalink
chore: expose game id & env id to backend (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Aug 21, 2024
1 parent d81d7a6 commit ff00497
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions rivet-toolchain/src/tasks/deploy/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,24 @@ pub async fn deploy(ctx: &Ctx, task: TaskCtx, opts: DeployOpts) -> GlobalResult<
},
);
}
if !variables.contains_key("RIVET_GAME_ID") {
update_variables.insert(
"RIVET_GAME_ID".to_string(),
models::EeBackendUpdateVariable {
text: Some(game_id_str.clone()),
..Default::default()
},
);
}
if !variables.contains_key("RIVET_ENVIRONMENT_ID") {
update_variables.insert(
"RIVET_ENVIRONMENT_ID".to_string(),
models::EeBackendUpdateVariable {
text: Some(env_id_str.clone()),
..Default::default()
},
);
}
if !variables.contains_key("RIVET_SERVICE_TOKEN") {
task.log_stdout(format!("[Creating Service Token]"));
let service_token =
Expand Down

0 comments on commit ff00497

Please sign in to comment.