refactor(ci): move cuddle please image to cuddle
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-08-12 12:25:31 +02:00
parent 8c3b5e660f
commit 5c53589c27
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394
4 changed files with 11 additions and 3 deletions

View File

@ -51,6 +51,9 @@ pub struct GlobalArgs {
#[arg(long, global = true, help_heading = "Global")] #[arg(long, global = true, help_heading = "Global")]
rust_builder_image: Option<String>, rust_builder_image: Option<String>,
#[arg(long, global = true, help_heading = "Global")]
cuddle_please_image: Option<String>,
#[arg(long, global = true, help_heading = "Global")] #[arg(long, global = true, help_heading = "Global")]
source: Option<PathBuf>, source: Option<PathBuf>,
} }
@ -129,7 +132,10 @@ mod please_release {
) -> eyre::Result<()> { ) -> eyre::Result<()> {
DaggerCuddlePleaseAction::dagger(client) DaggerCuddlePleaseAction::dagger(client)
.execute_src(&CuddlePleaseSrcArgs { .execute_src(&CuddlePleaseSrcArgs {
cuddle_image: "kasperhermansen/cuddle-please:main-1691504183".into(), cuddle_image: args
.cuddle_please_image
.clone()
.unwrap_or("kasperhermansen/cuddle-please:latest".into()),
server: dagger_cuddle_please::models::SrcServer::Gitea { server: dagger_cuddle_please::models::SrcServer::Gitea {
token: std::env::var("CUDDLE_PLEASE_TOKEN") token: std::env::var("CUDDLE_PLEASE_TOKEN")
.expect("CUDDLE_PLEASE_TOKEN to be present"), .expect("CUDDLE_PLEASE_TOKEN to be present"),

View File

@ -6,6 +6,8 @@ vars:
service: "dagger-components" service: "dagger-components"
registry: kasperhermansen registry: kasperhermansen
cuddle_please_image: "kasperhermansen/cuddle-please:main-1691504183"
please: please:
project: project:
owner: kjuulh owner: kjuulh

View File

@ -9,4 +9,4 @@ if [[ -n "$CI_PREFIX" ]]; then
fi fi
$CMD_PREFIX main $CMD_PREFIX main --cuddle-please-image="$CUDDLE_PLEASE_IMAGE"

View File

@ -8,4 +8,4 @@ if [[ -n "$CI_PREFIX" ]]; then
CMD_PREFIX="$CI_PREFIX" CMD_PREFIX="$CI_PREFIX"
fi fi
$CMD_PREFIX pull-request $CMD_PREFIX pull-request --cuddle-please-image="$CUDDLE_PLEASE_IMAGE"