reg-suit plugin to fetch and publish snapshot images to Google Cloud Storage.
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.
{
bucketName: string;
customUri?: string;
pathPrefix?: string;
}
-
bucketName
- Required - GCS bucket name to publish the snapshot images to. -
customUri
- Optional - Custom URI prefix. Default value ishttps://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 setsome_dir
, the report is published with URL such ashttps://storage.googleapis.com/your-bucket/some_dir/xxxxxxxxxindex.html
.