How to use the updeep.default function in updeep

To help you get started, we’ve selected a few updeep examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TryStarboard / Starboard / script / sub-actions / deployRC.js View on Github external
version: newVersion,
      image_version: imageConf.version,
    },
    renderedRCFilePath
  );

  if (opts.createRc && !rcname) {
    yield exec(`kubectl create -f ${renderedRCFilePath}`);
  } else {
    yield exec(`kubectl rolling-update ${rcname} -f ${renderedRCFilePath}`);
  }

  const conf = yield readJson('config/deployment.json');
  yield writeJson(
    'config/deployment.json',
    u(
      {
        [appLabel]: {
          version: newVersion
        }
      },
      conf
    )
  );
});
github TryStarboard / Starboard / script / sub-actions / build.js View on Github external
const imageTag = `${targetImageName}:v${newVersion}`;
  let dockerfilePath;

  if (isTemplate) {
    dockerfilePath = yield renderDockerfile(targetImageConf);
  } else {
    dockerfilePath = dockerfile;
  }

  yield buildImage(dockerfilePath, imageTag, opts);

  const conf = yield readJson('config/builds.json');

  yield writeJson(
    'config/builds.json',
    u(
      {
        [targetImageName]: {
          version: newVersion
        }
      },
      conf
    )
  );

  const childImageNames = yield findChildImages(targetImageName);
  for (const childImageName of childImageNames) {
    yield build(childImageName, opts);
  }
});

updeep

Easily update nested frozen objects and arrays in a declarative and immutable manner.

MIT
Latest version published 2 years ago

Package Health Score

57 / 100
Full package analysis