Skip to content

Instantly share code, notes, and snippets.

@farcaller
Created March 6, 2020 22:09
Embed
What would you like to do?
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