feat(ci): with dagger-rust components
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
c2e0b548f6
commit
d64a1d15dc
462
ci/src/main.rs
462
ci/src/main.rs
@ -7,9 +7,8 @@ use clap::Parser;
|
|||||||
use clap::Subcommand;
|
use clap::Subcommand;
|
||||||
use clap::ValueEnum;
|
use clap::ValueEnum;
|
||||||
|
|
||||||
use dagger_sdk::Platform;
|
use dagger_rust::build::RustVersion;
|
||||||
use dagger_sdk::QueryContainerOpts;
|
use dagger_rust::build::SlimImage;
|
||||||
use futures::StreamExt;
|
|
||||||
|
|
||||||
use crate::please_release::run_release_please;
|
use crate::please_release::run_release_please;
|
||||||
|
|
||||||
@ -31,10 +30,6 @@ pub enum Commands {
|
|||||||
command: LocalCommands,
|
command: LocalCommands,
|
||||||
},
|
},
|
||||||
PullRequest {
|
PullRequest {
|
||||||
#[arg(long)]
|
|
||||||
image: String,
|
|
||||||
#[arg(long)]
|
|
||||||
tag: String,
|
|
||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
bin_name: String,
|
bin_name: String,
|
||||||
},
|
},
|
||||||
@ -46,7 +41,14 @@ pub enum Commands {
|
|||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
bin_name: String,
|
bin_name: String,
|
||||||
},
|
},
|
||||||
Release,
|
Release {
|
||||||
|
#[arg(long)]
|
||||||
|
image: String,
|
||||||
|
#[arg(long)]
|
||||||
|
tag: String,
|
||||||
|
#[arg(long)]
|
||||||
|
bin_name: String,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Subcommand, Clone)]
|
#[derive(Subcommand, Clone)]
|
||||||
@ -112,48 +114,65 @@ async fn main() -> eyre::Result<()> {
|
|||||||
|
|
||||||
let cli = Command::parse();
|
let cli = Command::parse();
|
||||||
|
|
||||||
|
let crates = &["crates/*", "ci"];
|
||||||
|
let debian_deps = &["libssl-dev", "pkg-config", "openssl", "git", "jq"];
|
||||||
|
let debian_image = "debian:bullseye".to_string();
|
||||||
|
|
||||||
match &cli.commands {
|
match &cli.commands {
|
||||||
Commands::Local { command } => match command {
|
Commands::Local { command } => match command {
|
||||||
LocalCommands::Build {
|
LocalCommands::Build {
|
||||||
profile: _,
|
profile: _,
|
||||||
bin_name,
|
bin_name,
|
||||||
} => {
|
} => {
|
||||||
let base_image = base_rust_image(
|
dagger_rust::build::RustBuild::new(client.clone())
|
||||||
client.clone(),
|
.build_release(
|
||||||
&cli.global,
|
None::<PathBuf>,
|
||||||
&None,
|
RustVersion::Nightly,
|
||||||
&bin_name.clone(),
|
crates,
|
||||||
&"release".into(),
|
debian_deps,
|
||||||
)
|
vec![SlimImage::Debian {
|
||||||
.await?;
|
image: debian_image,
|
||||||
let prod_image = get_base_debian_image(client.clone(), &cli.global, None).await?;
|
deps: debian_deps
|
||||||
build::execute(
|
.iter()
|
||||||
client,
|
.map(|s| s.to_string())
|
||||||
&cli.global,
|
.collect::<Vec<_>>(),
|
||||||
&base_image,
|
architecture: dagger_rust::build::BuildArchitecture::Amd64,
|
||||||
&prod_image,
|
}],
|
||||||
bin_name,
|
&bin_name,
|
||||||
&None,
|
)
|
||||||
)
|
.await?;
|
||||||
.await?;
|
|
||||||
}
|
}
|
||||||
LocalCommands::Test => {
|
LocalCommands::Test => {
|
||||||
let base_image = base_rust_image(
|
dagger_rust::test::RustTest::new(client.clone())
|
||||||
client.clone(),
|
.test(None::<PathBuf>, RustVersion::Nightly, crates, debian_deps)
|
||||||
&cli.global,
|
.await?;
|
||||||
&None,
|
|
||||||
&"cuddle-please".into(),
|
|
||||||
&"debug".into(),
|
|
||||||
)
|
|
||||||
.await?;
|
|
||||||
test::execute(client, &cli.global, base_image).await?;
|
|
||||||
}
|
}
|
||||||
LocalCommands::DockerImage {
|
LocalCommands::DockerImage {
|
||||||
tag,
|
tag,
|
||||||
image,
|
image,
|
||||||
bin_name,
|
bin_name,
|
||||||
} => {
|
} => {
|
||||||
build::build_and_deploy(client, &cli.global, bin_name, image, tag).await?;
|
let images = dagger_rust::build::RustBuild::new(client.clone())
|
||||||
|
.build_release(
|
||||||
|
None::<PathBuf>,
|
||||||
|
RustVersion::Nightly,
|
||||||
|
crates,
|
||||||
|
debian_deps,
|
||||||
|
vec![SlimImage::Debian {
|
||||||
|
image: debian_image,
|
||||||
|
deps: debian_deps
|
||||||
|
.iter()
|
||||||
|
.map(|s| s.to_string())
|
||||||
|
.collect::<Vec<_>>(),
|
||||||
|
architecture: dagger_rust::build::BuildArchitecture::Amd64,
|
||||||
|
}],
|
||||||
|
&bin_name,
|
||||||
|
)
|
||||||
|
.await?;
|
||||||
|
|
||||||
|
dagger_rust::publish::RustPublish::new(client.clone())
|
||||||
|
.publish(image, tag, images)
|
||||||
|
.await?;
|
||||||
}
|
}
|
||||||
LocalCommands::PleaseRelease => todo!(),
|
LocalCommands::PleaseRelease => todo!(),
|
||||||
LocalCommands::BuildDocs {} => {
|
LocalCommands::BuildDocs {} => {
|
||||||
@ -165,69 +184,90 @@ async fn main() -> eyre::Result<()> {
|
|||||||
.await?;
|
.await?;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Commands::PullRequest {
|
Commands::PullRequest { bin_name } => {
|
||||||
image,
|
async fn test(client: Arc<dagger_sdk::Query>) {
|
||||||
tag,
|
let crates = &["crates/*", "ci"];
|
||||||
bin_name,
|
let debian_deps = &["libssl-dev", "pkg-config", "openssl", "git", "jq"];
|
||||||
} => {
|
|
||||||
async fn test(client: Arc<dagger_sdk::Query>, cli: &Command, bin_name: &String) {
|
|
||||||
let args = &cli.global;
|
|
||||||
|
|
||||||
let base_image =
|
dagger_rust::test::RustTest::new(client.clone())
|
||||||
base_rust_image(client.clone(), args, &None, bin_name, &"debug".into())
|
.test(None::<PathBuf>, RustVersion::Nightly, crates, debian_deps)
|
||||||
.await
|
|
||||||
.unwrap();
|
|
||||||
test::execute(client.clone(), args, base_image)
|
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.expect("rust to test crates");
|
||||||
}
|
}
|
||||||
async fn build(
|
async fn build(client: Arc<dagger_sdk::Query>, bin_name: &String) {
|
||||||
client: Arc<dagger_sdk::Query>,
|
let crates = &["crates/*", "ci"];
|
||||||
cli: &Command,
|
let debian_deps = &["libssl-dev", "pkg-config", "openssl", "git", "jq"];
|
||||||
bin_name: &String,
|
let debian_image = "debian:bullseye".to_string();
|
||||||
image: &String,
|
|
||||||
tag: &String,
|
|
||||||
) {
|
|
||||||
let args = &cli.global;
|
|
||||||
|
|
||||||
build::build(client.clone(), args, bin_name, image, tag)
|
dagger_rust::build::RustBuild::new(client.clone())
|
||||||
|
.build_release(
|
||||||
|
None::<PathBuf>,
|
||||||
|
RustVersion::Nightly,
|
||||||
|
crates,
|
||||||
|
debian_deps,
|
||||||
|
vec![SlimImage::Debian {
|
||||||
|
image: debian_image,
|
||||||
|
deps: debian_deps
|
||||||
|
.iter()
|
||||||
|
.map(|s| s.to_string())
|
||||||
|
.collect::<Vec<_>>(),
|
||||||
|
architecture: dagger_rust::build::BuildArchitecture::Amd64,
|
||||||
|
}],
|
||||||
|
&bin_name,
|
||||||
|
)
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.expect("dagger rust to build crates");
|
||||||
}
|
}
|
||||||
|
|
||||||
tokio::join!(
|
tokio::join!(test(client.clone()), build(client.clone(), bin_name),);
|
||||||
test(client.clone(), &cli, bin_name),
|
|
||||||
build(client.clone(), &cli, bin_name, image, tag),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
Commands::Main {
|
Commands::Main {
|
||||||
image,
|
image,
|
||||||
tag,
|
tag,
|
||||||
bin_name,
|
bin_name,
|
||||||
} => {
|
} => {
|
||||||
async fn test(client: Arc<dagger_sdk::Query>, cli: &Command, bin_name: &String) {
|
async fn test(client: Arc<dagger_sdk::Query>) {
|
||||||
let args = &cli.global;
|
let crates = &["crates/*", "ci"];
|
||||||
|
let debian_deps = &["libssl-dev", "pkg-config", "openssl", "git", "jq"];
|
||||||
|
|
||||||
let base_image =
|
dagger_rust::test::RustTest::new(client.clone())
|
||||||
base_rust_image(client.clone(), args, &None, bin_name, &"debug".into())
|
.test(None::<PathBuf>, RustVersion::Nightly, crates, debian_deps)
|
||||||
.await
|
|
||||||
.unwrap();
|
|
||||||
test::execute(client.clone(), args, base_image)
|
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.expect("rust to test crates");
|
||||||
}
|
}
|
||||||
async fn build(
|
async fn build(
|
||||||
client: Arc<dagger_sdk::Query>,
|
client: Arc<dagger_sdk::Query>,
|
||||||
cli: &Command,
|
|
||||||
bin_name: &String,
|
bin_name: &String,
|
||||||
image: &String,
|
image: &String,
|
||||||
tag: &String,
|
tag: &String,
|
||||||
) {
|
) {
|
||||||
let args = &cli.global;
|
let crates = &["crates/*", "ci"];
|
||||||
|
let debian_deps = &["libssl-dev", "pkg-config", "openssl", "git", "jq"];
|
||||||
|
let debian_image = "debian:bullseye".to_string();
|
||||||
|
|
||||||
build::build_and_deploy(client.clone(), args, bin_name, image, tag)
|
let images = dagger_rust::build::RustBuild::new(client.clone())
|
||||||
|
.build_release(
|
||||||
|
None::<PathBuf>,
|
||||||
|
RustVersion::Nightly,
|
||||||
|
crates,
|
||||||
|
debian_deps,
|
||||||
|
vec![SlimImage::Debian {
|
||||||
|
image: debian_image,
|
||||||
|
deps: debian_deps
|
||||||
|
.iter()
|
||||||
|
.map(|s| s.to_string())
|
||||||
|
.collect::<Vec<_>>(),
|
||||||
|
architecture: dagger_rust::build::BuildArchitecture::Amd64,
|
||||||
|
}],
|
||||||
|
&bin_name,
|
||||||
|
)
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.expect("rust build to build release crates");
|
||||||
|
|
||||||
|
dagger_rust::publish::RustPublish::new(client.clone())
|
||||||
|
.publish(image, tag, images)
|
||||||
|
.await
|
||||||
|
.expect("rust publish to publish crates");
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn cuddle_please(client: Arc<dagger_sdk::Query>, cli: &Command) {
|
async fn cuddle_please(client: Arc<dagger_sdk::Query>, cli: &Command) {
|
||||||
@ -237,12 +277,53 @@ async fn main() -> eyre::Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tokio::join!(
|
tokio::join!(
|
||||||
test(client.clone(), &cli, bin_name),
|
test(client.clone()),
|
||||||
build(client.clone(), &cli, bin_name, image, tag),
|
build(client.clone(), bin_name, image, tag),
|
||||||
cuddle_please(client.clone(), &cli)
|
cuddle_please(client.clone(), &cli)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Commands::Release => todo!(),
|
Commands::Release {
|
||||||
|
image,
|
||||||
|
tag,
|
||||||
|
bin_name,
|
||||||
|
} => {
|
||||||
|
async fn build(
|
||||||
|
client: Arc<dagger_sdk::Query>,
|
||||||
|
bin_name: &String,
|
||||||
|
image: &String,
|
||||||
|
tag: &String,
|
||||||
|
) {
|
||||||
|
let crates = &["crates/*", "ci"];
|
||||||
|
let debian_deps = &["libssl-dev", "pkg-config", "openssl", "git", "jq"];
|
||||||
|
let debian_image = "debian:bullseye".to_string();
|
||||||
|
|
||||||
|
let images = dagger_rust::build::RustBuild::new(client.clone())
|
||||||
|
.build_release(
|
||||||
|
None::<PathBuf>,
|
||||||
|
RustVersion::Nightly,
|
||||||
|
crates,
|
||||||
|
debian_deps,
|
||||||
|
vec![SlimImage::Debian {
|
||||||
|
image: debian_image,
|
||||||
|
deps: debian_deps
|
||||||
|
.iter()
|
||||||
|
.map(|s| s.to_string())
|
||||||
|
.collect::<Vec<_>>(),
|
||||||
|
architecture: dagger_rust::build::BuildArchitecture::Amd64,
|
||||||
|
}],
|
||||||
|
&bin_name,
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
.expect("rust build to build release crates");
|
||||||
|
|
||||||
|
dagger_rust::publish::RustPublish::new(client.clone())
|
||||||
|
.publish(image, tag, images)
|
||||||
|
.await
|
||||||
|
.expect("rust publish to publish crates");
|
||||||
|
}
|
||||||
|
|
||||||
|
build(client.clone(), bin_name, image, tag).await;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
@ -378,231 +459,6 @@ mod docs {
|
|||||||
|
|
||||||
Ok(dep_image)
|
Ok(dep_image)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn publish(
|
|
||||||
client: Arc<dagger_sdk::Query>,
|
|
||||||
args: &GlobalArgs,
|
|
||||||
containers: &Vec<dagger_sdk::Container>,
|
|
||||||
) -> eyre::Result<()> {
|
|
||||||
let container_ids =
|
|
||||||
futures::future::join_all(containers.iter().map(|c| c.id()).collect::<Vec<_>>()).await;
|
|
||||||
|
|
||||||
let container_ids = container_ids
|
|
||||||
.into_iter()
|
|
||||||
.collect::<eyre::Result<Vec<dagger_sdk::ContainerId>>>()?;
|
|
||||||
|
|
||||||
client
|
|
||||||
.container()
|
|
||||||
.publish_opts(
|
|
||||||
format!(
|
|
||||||
"{}:{}",
|
|
||||||
args.docs_image.as_ref().expect("--docs-image to be set"),
|
|
||||||
args.docs_image_tag
|
|
||||||
.as_ref()
|
|
||||||
.expect("--docs-image-tag to be set")
|
|
||||||
),
|
|
||||||
dagger_sdk::ContainerPublishOpts {
|
|
||||||
platform_variants: Some(container_ids),
|
|
||||||
},
|
|
||||||
)
|
|
||||||
.await?;
|
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
mod build {
|
|
||||||
use std::sync::Arc;
|
|
||||||
|
|
||||||
use dagger_sdk::Container;
|
|
||||||
|
|
||||||
use crate::{base_rust_image, get_base_debian_image, GlobalArgs};
|
|
||||||
|
|
||||||
pub async fn build_and_deploy(
|
|
||||||
client: Arc<dagger_sdk::Query>,
|
|
||||||
args: &GlobalArgs,
|
|
||||||
bin_name: &String,
|
|
||||||
image: &String,
|
|
||||||
tag: &String,
|
|
||||||
) -> eyre::Result<()> {
|
|
||||||
// let containers = vec!["linux/amd64", "linux/arm64"];
|
|
||||||
|
|
||||||
let base_image = get_base_debian_image(
|
|
||||||
client.clone(),
|
|
||||||
&args.clone(),
|
|
||||||
Some("linux/amd64".to_string()),
|
|
||||||
)
|
|
||||||
.await?;
|
|
||||||
|
|
||||||
let container = base_rust_image(
|
|
||||||
client.clone(),
|
|
||||||
args,
|
|
||||||
&Some("linux/amd64".to_string()),
|
|
||||||
&bin_name.clone(),
|
|
||||||
&"release".into(),
|
|
||||||
)
|
|
||||||
.await?;
|
|
||||||
let build_image = execute(
|
|
||||||
client.clone(),
|
|
||||||
args,
|
|
||||||
&container,
|
|
||||||
&base_image,
|
|
||||||
bin_name,
|
|
||||||
&Some("linux/amd64".to_string()),
|
|
||||||
)
|
|
||||||
.await?;
|
|
||||||
|
|
||||||
let build_id = build_image.id().await?;
|
|
||||||
|
|
||||||
let _container = client
|
|
||||||
.clone()
|
|
||||||
.container()
|
|
||||||
.publish_opts(
|
|
||||||
format!("{image}:{tag}"),
|
|
||||||
dagger_sdk::ContainerPublishOpts {
|
|
||||||
platform_variants: Some(vec![build_id]),
|
|
||||||
},
|
|
||||||
)
|
|
||||||
.await?;
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
pub async fn build(
|
|
||||||
client: Arc<dagger_sdk::Query>,
|
|
||||||
args: &GlobalArgs,
|
|
||||||
bin_name: &String,
|
|
||||||
_image: &String,
|
|
||||||
_tag: &String,
|
|
||||||
) -> eyre::Result<()> {
|
|
||||||
// let containers = vec!["linux/amd64", "linux/arm64"];
|
|
||||||
|
|
||||||
let base_image = get_base_debian_image(
|
|
||||||
client.clone(),
|
|
||||||
&args.clone(),
|
|
||||||
Some("linux/amd64".to_string()),
|
|
||||||
)
|
|
||||||
.await?;
|
|
||||||
|
|
||||||
let container = base_rust_image(
|
|
||||||
client.clone(),
|
|
||||||
args,
|
|
||||||
&Some("linux/amd64".to_string()),
|
|
||||||
&bin_name.clone(),
|
|
||||||
&"release".into(),
|
|
||||||
)
|
|
||||||
.await?;
|
|
||||||
let build_image = execute(
|
|
||||||
client.clone(),
|
|
||||||
args,
|
|
||||||
&container,
|
|
||||||
&base_image,
|
|
||||||
bin_name,
|
|
||||||
&Some("linux/amd64".to_string()),
|
|
||||||
)
|
|
||||||
.await?;
|
|
||||||
|
|
||||||
build_image.exit_code().await?;
|
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
pub async fn execute(
|
|
||||||
_client: Arc<dagger_sdk::Query>,
|
|
||||||
_args: &GlobalArgs,
|
|
||||||
container: &dagger_sdk::Container,
|
|
||||||
base_image: &dagger_sdk::Container,
|
|
||||||
bin_name: &String,
|
|
||||||
platform: &Option<String>,
|
|
||||||
) -> eyre::Result<Container> {
|
|
||||||
let rust_target = match platform
|
|
||||||
.clone()
|
|
||||||
.unwrap_or("linux/amd64".to_string())
|
|
||||||
.as_str()
|
|
||||||
{
|
|
||||||
"linux/amd64" => "x86_64-unknown-linux-gnu",
|
|
||||||
"linux/arm64" => "aarch64-unknown-linux-gnu",
|
|
||||||
_ => eyre::bail!("architecture not supported"),
|
|
||||||
};
|
|
||||||
let build_image = container.with_exec(vec![
|
|
||||||
"cargo",
|
|
||||||
"build",
|
|
||||||
"--target",
|
|
||||||
rust_target,
|
|
||||||
"--release",
|
|
||||||
"-p",
|
|
||||||
bin_name,
|
|
||||||
]);
|
|
||||||
|
|
||||||
let final_image = base_image
|
|
||||||
.with_file(
|
|
||||||
format!("/usr/local/bin/{}", &bin_name),
|
|
||||||
build_image
|
|
||||||
.file(format!("target/{}/release/{}", rust_target, &bin_name))
|
|
||||||
.id()
|
|
||||||
.await?,
|
|
||||||
)
|
|
||||||
.with_exec(vec![bin_name, "--help"]);
|
|
||||||
|
|
||||||
let output = final_image.stdout().await?;
|
|
||||||
println!("{output}");
|
|
||||||
|
|
||||||
//.with_entrypoint(vec![&bin_name, "--log-level=debug"]);
|
|
||||||
|
|
||||||
Ok(final_image)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
mod test {
|
|
||||||
use std::sync::Arc;
|
|
||||||
|
|
||||||
use crate::GlobalArgs;
|
|
||||||
|
|
||||||
pub async fn execute(
|
|
||||||
_client: Arc<dagger_sdk::Query>,
|
|
||||||
_args: &GlobalArgs,
|
|
||||||
container: dagger_sdk::Container,
|
|
||||||
) -> eyre::Result<()> {
|
|
||||||
let test_image = container
|
|
||||||
.pipeline("rust:test")
|
|
||||||
.with_exec(vec!["apt", "update"])
|
|
||||||
.with_exec(vec!["apt", "install", "-y", "git"])
|
|
||||||
.with_exec(vec!["cargo", "test"]);
|
|
||||||
|
|
||||||
test_image.exit_code().await?;
|
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub async fn get_base_debian_image(
|
|
||||||
client: Arc<dagger_sdk::Query>,
|
|
||||||
args: &GlobalArgs,
|
|
||||||
platform: Option<String>,
|
|
||||||
) -> eyre::Result<dagger_sdk::Container> {
|
|
||||||
let default_platform = client.default_platform().await?;
|
|
||||||
let platform = platform.map(Platform).unwrap_or(default_platform);
|
|
||||||
|
|
||||||
let image = client
|
|
||||||
.container_opts(QueryContainerOpts {
|
|
||||||
id: None,
|
|
||||||
platform: Some(platform),
|
|
||||||
})
|
|
||||||
.from(
|
|
||||||
args.production_image
|
|
||||||
.clone()
|
|
||||||
.unwrap_or("debian:bullseye".to_string()),
|
|
||||||
);
|
|
||||||
|
|
||||||
let base_image = image.with_exec(vec!["apt", "update"]).with_exec(vec![
|
|
||||||
"apt",
|
|
||||||
"install",
|
|
||||||
"-y",
|
|
||||||
"libssl-dev",
|
|
||||||
"pkg-config",
|
|
||||||
"openssl",
|
|
||||||
"git",
|
|
||||||
"jq",
|
|
||||||
]);
|
|
||||||
|
|
||||||
Ok(base_image)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_src(
|
pub fn get_src(
|
||||||
|
17
scripts/ci:release.sh
Executable file
17
scripts/ci:release.sh
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
CMD_PREFIX="cargo run -p ci --"
|
||||||
|
|
||||||
|
if [[ -n "$CI_PREFIX" ]]; then
|
||||||
|
CMD_PREFIX="$CI_PREFIX"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
$CMD_PREFIX release \
|
||||||
|
--mkdocs-image "$MKDOCS_IMAGE" \
|
||||||
|
--caddy-image "$CADDY_IMAGE" \
|
||||||
|
--image "$REGISTRY/$SERVICE" \
|
||||||
|
--tag "$DRONE_TAG" \
|
||||||
|
--bin-name "$SERVICE"
|
Loading…
Reference in New Issue
Block a user