Within Google Cloud, services can make use of Credentials-"Auto Discovery" (ADC). The @google-cloud/storage library supports this and tries an automatic discovery when keyFilename is unset. In an auto-discover scenario projectId is discovered as well so this should also be allowed to not be set. The --gcs.bucketname option could be kept as a (mandatory) signal to use GCS at all.
Co-authored-by: Peter Hedenskog <peter@soulgalore.com>
* Ensure only files are uploaded since the node lib does not support uloading folders directly
* Addig flag for enabeling gzip metadata encoding and disabled resumable upload since to many connecteins are opened some times.
* Running the linter to late as usual