File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ use crate::BuilderError;
5
5
pub fn push (
6
6
location : String ,
7
7
name : String ,
8
+ version : String ,
8
9
registry : String ,
9
10
creds : String ,
10
11
) -> Result < ( ) , BuilderError > {
@@ -13,7 +14,7 @@ pub fn push(
13
14
"--insecure-policy" ,
14
15
"copy" ,
15
16
& format ! ( "docker-archive:{location}" ) ,
16
- & format ! ( "docker://{registry}/{name}:latest " ) ,
17
+ & format ! ( "docker://{registry}/{name}:{version} " ) ,
17
18
& format ! ( "--dest-creds={creds}" ) ,
18
19
] )
19
20
. stderr ( Stdio :: inherit ( ) )
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ impl Niksi {
178
178
docker:: push (
179
179
location. display ( ) . to_string ( ) ,
180
180
self . config . name . clone ( ) ,
181
+ self . config . version . clone ( ) ,
181
182
self . config . registry . clone ( ) . unwrap ( ) , //TODO: handle this better
182
183
creds,
183
184
) ?;
You can’t perform that action at this time.
0 commit comments