feat: with renovate match
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-07-27 00:47:14 +02:00
parent 8a60a60134
commit d9212bc373
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394
2 changed files with 17 additions and 4 deletions

View File

@ -34,10 +34,12 @@ async fn main() -> eyre::Result<()> {
let tag = chrono::Utc::now().timestamp(); 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 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 let pull_articles = client
.container() .container()
.from("docker.io/kasperhermansen/pull-articles:1690403944") .from(pull_articles_docker_image)
.with_exec(vec!["echo", &format!("{}", tag)]) .with_exec(vec!["echo", &format!("{}", tag)])
.with_env_variable("GIT_USERNAME", "kjuulh") .with_env_variable("GIT_USERNAME", "kjuulh")
.with_env_variable("GIT_PASSWORD", std::env::var("GIT_PASSWORD").unwrap()) .with_env_variable("GIT_PASSWORD", std::env::var("GIT_PASSWORD").unwrap())
@ -137,7 +139,7 @@ async fn main() -> eyre::Result<()> {
let update_deployment = client let update_deployment = client
.container() .container()
.from("kasperhermansen/update-deployment:1690401410") .from(update_deployments_docker_image)
.with_env_variable("GIT_USERNAME", "kjuulh") .with_env_variable("GIT_USERNAME", "kjuulh")
.with_env_variable("GIT_PASSWORD", std::env::var("GIT_PASSWORD").unwrap()) .with_env_variable("GIT_PASSWORD", std::env::var("GIT_PASSWORD").unwrap())
.with_exec(vec![ .with_exec(vec![

View File

@ -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.*\"(?<depName>.*):(?<version>.*)\";"
],
"datasourceTemplate": "docker"
}
]
}