From 326e4b6fa8e77443e16aface04dbaad39d05fcc9 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 22 Dec 2024 12:42:37 +0100 Subject: [PATCH] chore: use file instead Signed-off-by: kjuulh --- crates/cuddle-rust-cli-plan/src/main.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/crates/cuddle-rust-cli-plan/src/main.rs b/crates/cuddle-rust-cli-plan/src/main.rs index 724c157..0151edb 100644 --- a/crates/cuddle-rust-cli-plan/src/main.rs +++ b/crates/cuddle-rust-cli-plan/src/main.rs @@ -73,6 +73,16 @@ impl cuddle_ci::ReleaseAction for RustReleaser { rust_image .with_workdir("/mnt/src") .with_directory("/mnt/src", src) + .with_new_file( + "/root/.cargo/credentials", + format!( + r#" +[registry] +token = "{}" +"#, + crates_token + ), + ) .with_secret_variable( "CARGO_REGISTRY_TOKEN", self.client.set_secret("CARGO_REGISTRY_TOKEN", crates_token),