From d9212bc3733e40170542b6ba13eefbf6edc521bb Mon Sep 17 00:00:00 2001 From: kjuulh Date: Thu, 27 Jul 2023 00:47:14 +0200 Subject: [PATCH] feat: with renovate match Signed-off-by: kjuulh --- ci/src/main.rs | 6 ++++-- renovate.json | 15 +++++++++++++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/ci/src/main.rs b/ci/src/main.rs index fd68b4a..763b4da 100644 --- a/ci/src/main.rs +++ b/ci/src/main.rs @@ -34,10 +34,12 @@ async fn main() -> eyre::Result<()> { let tag = chrono::Utc::now().timestamp(); let github_zola_download = format!("https://github.com/barnumbirr/zola-debian/releases/download/v{zola_version}/zola_{zola_version}_{debian_platform}_{debian_edition}.deb"); + let pull_articles_docker_image = "docker.io/kasperhermansen/pull-articles:1690403944"; + let update_deployments_docker_image = "docker.io/kasperhermansen/update-deployment:1690401410"; let pull_articles = client .container() - .from("docker.io/kasperhermansen/pull-articles:1690403944") + .from(pull_articles_docker_image) .with_exec(vec!["echo", &format!("{}", tag)]) .with_env_variable("GIT_USERNAME", "kjuulh") .with_env_variable("GIT_PASSWORD", std::env::var("GIT_PASSWORD").unwrap()) @@ -137,7 +139,7 @@ async fn main() -> eyre::Result<()> { let update_deployment = client .container() - .from("kasperhermansen/update-deployment:1690401410") + .from(update_deployments_docker_image) .with_env_variable("GIT_USERNAME", "kjuulh") .with_env_variable("GIT_PASSWORD", std::env::var("GIT_PASSWORD").unwrap()) .with_exec(vec![ diff --git a/renovate.json b/renovate.json index 7190a60..c1556ef 100644 --- a/renovate.json +++ b/renovate.json @@ -1,3 +1,14 @@ { - "$schema": "https://docs.renovatebot.com/renovate-schema.json" -} + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "regexManagers": [ + { + "fileMatch": [ + "^main.rs$" + ], + "matchStrings": [ + "let.*docker_image.*\"(?.*):(?.*)\";" + ], + "datasourceTemplate": "docker" + } + ] +} \ No newline at end of file