const docker = new Docker({auth: 'https://registry.domain.com', namespace: "mynamespace"});
docker.buildAndPush("dockerfilePath", "imageName", "latest" || ["latest", "1.0.0-commit"], true);
// if you image not change, you need patch, deployK8s do patch for you
deployK8s("k8s-dev", "repo", "/app.yaml", "deployment-name","namespace");
// or just patch, because image not change
patchDeployment("k8s-cluster", "demo", "default");
import {gitDiff, applyDiff, SSHConfig} from "./src";
const config: SSHConfig = {host: "k8s-cluster"};
(async () => {
await applyDiff(config, gitDiff());
})();