Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Téo Haÿs committed Feb 25, 2022
2 parents 26e2ff3 + 67ee90d commit 07ee689
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/save.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ pub fn save(name: &String, node: &str) {
//We create the string for the command that we are going to execute remotely.
//Here, we create a new image from the running container on the node, and push it to the
//remote registry.
let cmd = format!("docker commit container {image_name} && docker push {protocol}{repository}/{image_name}",
protocol = env_var("REGISTRY_PROTOCOL"),
let cmd = format!("docker commit container {image_name} && docker image tag {image_name} {repository}/{image_name} && docker push --all-tags {repository}/{image_name}",
repository = env_var("SAVE_URL"),
image_name = name);

Expand Down

0 comments on commit 07ee689

Please sign in to comment.