How to use the gcbuild.build function in gcbuild

To help you get started, we’ve selected a few gcbuild 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 googleapis / gcp-metadata / system-test / system.ts View on Github external
it('should access the metadata service on GCB', async () => {
      try {
        const result = await gcbuild.build({
          sourcePath: path.join(
            __dirname,
            '../../system-test/fixtures/cloudbuild'
          ),
        });
        console.log(result.log);
        assert.ok(/isAvailable: true/.test(result.log));
        assert.ok(
          result.log.includes('"default":{"aliases":["default"],"email"')
        );
      } catch (e) {
        console.error(e.log);
        throw e;
      }
    });
  });

gcbuild

An API and CLI for building docker containers with Google Cloud Build.

MIT
Latest version published 4 years ago

Package Health Score

43 / 100
Full package analysis

Popular gcbuild functions