Skip to content

Instantly share code, notes, and snippets.

@farcaller
Created March 6, 2020 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save farcaller/deadd9cb5375549037d1de0f5479a623 to your computer and use it in GitHub Desktop.
Save farcaller/deadd9cb5375549037d1de0f5479a623 to your computer and use it in GitHub Desktop.
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const sourcehubProject = new gcp.Provider('testproject', {
project: 'testproject',
credentials: 'admin.googleaccount',
});
const repos = ['apps/myapp', 'deploy/myapp'];
for (const r of repos) {
new gcp.sourcerepo.Repository(r, { name: r }, { import: r, provider: sourcehubProject });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment