refactor(ci): move cuddle please image to cuddle
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
8c3b5e660f
commit
5c53589c27
@ -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"),
|
||||||
|
@ -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
|
||||||
|
@ -9,4 +9,4 @@ if [[ -n "$CI_PREFIX" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
$CMD_PREFIX main
|
$CMD_PREFIX main --cuddle-please-image="$CUDDLE_PLEASE_IMAGE"
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user