meltwater / drone-cache

A Drone plugin for caching current workspace files between builds to reduce your build times
https://underthehood.meltwater.com/blog/2019/04/10/making-drone-builds-10-times-faster/
Apache License 2.0
338 stars 81 forks source link

[Bug] Input Key mismatch for Azure config #256

Open shiv-am0 opened 8 months ago

shiv-am0 commented 8 months ago

Observed Behaviour

The flag for PLUGIN_CONTAINER input is named as azure.blob-container-name as seen in the following snippet:- &cli.StringFlag{ Name: "azure.blob-container-name", Usage: "Azure Blob Storage container name", EnvVars: []string{"PLUGIN_CONTAINER", "AZURE_CONTAINER_NAME"},

But, the same variable is being accessed using name azure.container-name as shown in the following snippet:- Azure: azure.Config{ AccountName: c.String("azure.account-name"), AccountKey: c.String("azure.account-key"), ContainerName: c.String("azure.container-name"), BlobStorageURL: c.String("azure.blob-storage-url"), Azurite: false, Timeout: c.Duration("backend.operation-timeout"),

Version(s) Affected

No response

Steps to Reproduce

  1. Refer the Azure config flags here
  2. Refer the config setting here

Expected Behaviour

Both the names for the input must be same