Skip to content

Fix AUTO_DEVOPS_CHART file download

After unpacking the custom chart file - helm 3 keeps the full file name (with the file extension) as the folder name.

Original error from auto devops:

$ auto-deploy download_chart
"stable" has been added to your repositories
"bitnami" has been added to your repositories
Downloading remote chart 'https://gitlab.com/alekseyp/auto-deploy-app/-/archive/master/auto-deploy-app-master.tar.gz'...
mv: can't rename 'auto-deploy-app-master': No such file or directory

Local test results:

$ helm pull "https://gitlab.com/alekseyp/auto-deploy-app/-/archive/master/auto-deploy-app-master.tar.gz" --untar
$ ls -lart | grep auto-deploy                                                                                                                                                  
drwxr-xr-x    2 nulls  staff      64  6 Dec 19:46 auto-deploy-app-master.tar.gz

Merge request reports