feat: with registry
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-11-27 21:24:45 +01:00
parent c893dc9005
commit a900ebae54
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -327,9 +327,16 @@ impl PullRequestAction for RustService {
impl MainAction for RustService {
async fn execute_main(&self) -> eyre::Result<()> {
let container = self.build_release().await?;
let timestamp = std::time::SystemTime::now()
.duration_since(std::time::UNIX_EPOCH)
.unwrap()
.as_secs();
container
.publish(format!("docker.io//{}", self.bin_name))
.publish(format!(
"docker.io/kasperhermansen/{}:main-{}",
self.bin_name, timestamp,
))
.await?;
Ok(())