// region generate unique name that won't make conflict with each user
import { GoogleAuth } from 'google-auth-library';
export const createAuth = (info) => {
    return new GoogleAuth({
        credentials: info
    });
};
// google cloud build images only accept a lowercase name
export const getProjectId = (owner, repoName) => `${owner}-${repoName}`.toLowerCase();
export const getCloudBuildTriggerName = (owner, repoName) => `${owner}-${repoName}`.toLowerCase();
// google cloud run only accept a lowercase name
export const getCloudRunServiceName = (owner, repoName) => `${owner}-${repoName}`.toLowerCase();
//# sourceMappingURL=util.js.map