update
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jeffrey C. Ollie 2023-04-15 17:40:37 -05:00
parent 4e0a91235a
commit 9817e35967
Signed by: jeff
GPG key ID: 6F86035A6D97044E
2 changed files with 9 additions and 4 deletions

View file

@ -369,9 +369,10 @@
script = pkgs.writeTextFile
{
name = "push-container";
text = ''
#!${pkgs.nushell}/bin/nu
'' + (builtins.readFile ./push-container.nu);
text = lib.concatStringsSep "\n" [
"#!${pkgs.nushell}/bin/nu"
(builtins.readFile ./push-container.nu)
];
executable = true;
};
in

View file

@ -72,16 +72,20 @@ def main [
exit 1
}
print "XXX"
$env.PLUGIN_PASSWORD | podman login --username $env.PLUGIN_USERNAME --password-stdin $env.PLUGIN_REGISTRY
print "YYY"
let old_image = (podman load --input $input | parse "Loaded image: {image}" | get 0.image)
print "ZZZ"
print $old_image
podman images
$tags | each {
|tag|
let new_image = $"($env.PLUGIN_REGISTRY)/($env.PLUGIN_REPOSITORY):($tag)"
print $new_image
podman tag $old_image $new_image
podman push $new_image
}
podman images
podman logout "''${PLUGIN_REGISTRY}"
podman logout $env.PLUGIN_REGISTRY
}