Skip to content

Commit 41c4033

Browse files
committed
feat(docker): push image with correct tag
1 parent 4879886 commit 41c4033

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/src/docker.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use crate::BuilderError;
55
pub fn push(
66
location: String,
77
name: String,
8+
version: String,
89
registry: String,
910
creds: String,
1011
) -> Result<(), BuilderError> {
@@ -13,7 +14,7 @@ pub fn push(
1314
"--insecure-policy",
1415
"copy",
1516
&format!("docker-archive:{location}"),
16-
&format!("docker://{registry}/{name}:latest"),
17+
&format!("docker://{registry}/{name}:{version}"),
1718
&format!("--dest-creds={creds}"),
1819
])
1920
.stderr(Stdio::inherit())

lib/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ impl Niksi {
178178
docker::push(
179179
location.display().to_string(),
180180
self.config.name.clone(),
181+
self.config.version.clone(),
181182
self.config.registry.clone().unwrap(), //TODO: handle this better
182183
creds,
183184
)?;

0 commit comments

Comments
 (0)