Uploads a base64 encoded string to a bucket on Google.
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(.)
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)
If the action is successful not output is returned.
In the case that an error is encountered, it will present in the following format:
{
"errorCode": "com.google-upload.error",
"errorMsg": "Something went wrong"
}
Content type
Image
Digest
Size
4.4 MB
Last updated
about 5 years ago
docker pull vorteil/google-upload