diff --git a/.drone.yml b/.drone.yml index d6028fd..ad0d159 100644 --- a/.drone.yml +++ b/.drone.yml @@ -102,6 +102,8 @@ steps: CUDDLE_SECRETS_PROVIDER: 1password CUDDLE_ONE_PASSWORD_DOT_ENV: ".env.ci" CUDDLE_SSH_AGENT: "true" + GIT_PASSWORD: + from_secret: gitea_token CI_PREFIX: "/mnt/ci/ci" CUDDLE_PLEASE_TOKEN: from_secret: cuddle_please_token @@ -167,4 +169,4 @@ volumes: - name: dockersock temp: {} - name: ci - temp: {} \ No newline at end of file + temp: {} diff --git a/crates/cuddle-ci/src/rust_service.rs b/crates/cuddle-ci/src/rust_service.rs index ac85c34..7b6fd5d 100644 --- a/crates/cuddle-ci/src/rust_service.rs +++ b/crates/cuddle-ci/src/rust_service.rs @@ -344,8 +344,11 @@ impl MainAction for RustService { self.client .container() .from(update_deployments_docker_image) - .with_env_variable("GIT_USERNAME", "kjuulh") - .with_env_variable("GIT_PASSWORD", std::env::var("GIT_PASSWORD").unwrap()) + .with_env_variable("GIT_USERNAME", "git") + .with_env_variable( + "GIT_PASSWORD", + std::env::var("GIT_PASSWORD").expect("GIT_PASSWORD to be set"), + ) .with_exec(vec![ "update-deployment", "--repo",