Sign inSign up

vorteil/azure-upload

By vorteil

Updated about 5 years ago

Image
0

1.7K

vorteil/azure-upload repository overview

Azure Upload

Uploads a base64 encoded string to a blob on Azure.

Direktiv

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

id: upload-object
functions:
- id: upload
  image: vorteil/azure-upload:v2
description: "Uploads a base64 encoded string to blob 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:
  container: "azure-container"
  "storage-account": "storage-account"
  "storage-account-key": jq(.secrets.AZURE_STORAGE_KEY)
  data: "base64 decoded string"
  "upload-name": "test"

Output

If the action is successful the output will be the response from the Azure upload.

Error

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

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

Tag summary

Content type

Image

Digest

Size

2.4 MB

Last updated

about 5 years ago

docker pull vorteil/azure-upload