@netless/devops-scripts
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

docker-scripts

How to use

  • develop
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");
  • yaml repo
import {gitDiff, applyDiff, SSHConfig} from "./src";

const config: SSHConfig = {host: "k8s-cluster"};
(async () => {
    await applyDiff(config, gitDiff());
})();

TODO:

  • [ ] delete D yaml's deployment statefulset ingress service
  • [ ] support handle all yaml kind, not just first
  • [ ] check kind support operation
  • [ ] deployK8s not need deployment and name, just need yaml.

/@netless/devops-scripts/

    Package Sidebar

    Install

    npm i @netless/devops-scripts

    Weekly Downloads

    3

    Version

    0.0.7

    License

    MIT

    Unpacked Size

    62 kB

    Total Files

    52

    Last publish

    Collaborators

    • hqer
    • vince-hz
    • hyrious
    • huaguzheng