Sign inSign up

vorteil/google-upload

By vorteil

Updated about 5 years ago

Image
0

1.5K

vorteil/google-upload repository overview

Google Upload

Uploads a base64 encoded string to a bucket on Google.

Direktiv

An example workflow of uploading a base64 encoded string to Google.

id: upload-object
functions:
- id: upload
  image: vorteil/google-upload:v2
description: "Uploads a base64 encoded string to bucket storage"
states:
- id: upload-file
  type: action
  action:
    function: upload
    input: jq(.)

Input

The input required to run the above workflow properly is the following:

input:
  bucket: "vorteil"
  data: "base64 decoded string"
  "upload-name": "test"
  serviceAccountKey: jq(.secrets.GOOGLE_SERVICE_ACCOUNT)

Output

If the action is successful not output is returned.

Error

In the case that an error is encountered, it will present in the following format:

{
    "errorCode": "com.google-upload.error",
    "errorMsg": "Something went wrong"
}

Tag summary

Content type

Image

Digest

Size

4.4 MB

Last updated

about 5 years ago

docker pull vorteil/google-upload