feat: with git name
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-11-27 22:04:39 +01:00
parent c391482874
commit 0f7ed2b6f4
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
2 changed files with 8 additions and 3 deletions

View File

@ -102,6 +102,8 @@ steps:
CUDDLE_SECRETS_PROVIDER: 1password CUDDLE_SECRETS_PROVIDER: 1password
CUDDLE_ONE_PASSWORD_DOT_ENV: ".env.ci" CUDDLE_ONE_PASSWORD_DOT_ENV: ".env.ci"
CUDDLE_SSH_AGENT: "true" CUDDLE_SSH_AGENT: "true"
GIT_PASSWORD:
from_secret: gitea_token
CI_PREFIX: "/mnt/ci/ci" CI_PREFIX: "/mnt/ci/ci"
CUDDLE_PLEASE_TOKEN: CUDDLE_PLEASE_TOKEN:
from_secret: cuddle_please_token from_secret: cuddle_please_token

View File

@ -344,8 +344,11 @@ impl MainAction for RustService {
self.client self.client
.container() .container()
.from(update_deployments_docker_image) .from(update_deployments_docker_image)
.with_env_variable("GIT_USERNAME", "kjuulh") .with_env_variable("GIT_USERNAME", "git")
.with_env_variable("GIT_PASSWORD", std::env::var("GIT_PASSWORD").unwrap()) .with_env_variable(
"GIT_PASSWORD",
std::env::var("GIT_PASSWORD").expect("GIT_PASSWORD to be set"),
)
.with_exec(vec![ .with_exec(vec![
"update-deployment", "update-deployment",
"--repo", "--repo",