Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
c893dc9005
commit
a900ebae54
@ -327,9 +327,16 @@ impl PullRequestAction for RustService {
|
|||||||
impl MainAction for RustService {
|
impl MainAction for RustService {
|
||||||
async fn execute_main(&self) -> eyre::Result<()> {
|
async fn execute_main(&self) -> eyre::Result<()> {
|
||||||
let container = self.build_release().await?;
|
let container = self.build_release().await?;
|
||||||
|
let timestamp = std::time::SystemTime::now()
|
||||||
|
.duration_since(std::time::UNIX_EPOCH)
|
||||||
|
.unwrap()
|
||||||
|
.as_secs();
|
||||||
|
|
||||||
container
|
container
|
||||||
.publish(format!("docker.io//{}", self.bin_name))
|
.publish(format!(
|
||||||
|
"docker.io/kasperhermansen/{}:main-{}",
|
||||||
|
self.bin_name, timestamp,
|
||||||
|
))
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
Reference in New Issue
Block a user