Fetch and publish snapshot images to Google Cloud Storage.
npm install reg-publish-gcs-pluginreg-suit plugin to fetch and publish snapshot images to Google Cloud Storage.
``sh`
npm i reg-publish-gcs-plugin -D
reg-suit prepare -p publish-gcs
This plugin has to be authorized using GCP's Application Default Credentials.
If you run this plugin in your CI service, it's recommended to create a Service Account. Visit https://cloud.google.com/iam/docs/creating-managing-service-accounts to see more details.
`ts`
{
bucketName: string;
customUri?: string;
pathPrefix?: string;
}
- bucketName - _Required_ - GCS bucket name to publish the snapshot images to.customUri
- - _Optional_ - Custom URI prefix. Default value is https://storage.googleapis.com/${bucketName}. It's useful if you request report HTML over some HTTP proxy servers.pathPrefix
- - _Optional_ - Specify paths. For example if you set some_dir, the report is published with URL such as https://storage.googleapis.com/your-bucket/some_dir/xxxxxxxxxindex.html`.