reg-publish-gcs-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.14.3 • Public • Published

reg-publish-gcs-plugin

reg-suit plugin to fetch and publish snapshot images to Google Cloud Storage.

Install

npm i reg-publish-gcs-plugin -D
reg-suit prepare -p publish-gcs

Authorizing GCP

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.

Configure

{
  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.

Package Sidebar

Install

npm i reg-publish-gcs-plugin

Weekly Downloads

13,441

Version

0.14.3

License

MIT

Unpacked Size

88.5 kB

Total Files

15

Last publish

Collaborators

  • quramy