Home > OS >  Azure DevOps 10MB Secure files alternative
Azure DevOps 10MB Secure files alternative

Time:12-14

I must integrate a 3rd party module into our containerized Docker solution. On my local dev it works well as I can download the image 3rdParty_file_name.tar on the disk and use it:

docker load --input .\3rdParty_file_name.tar

The problem appears when I have to do the same in Azure Devops. How can I integrate the image 3rdParty_file_name.tar into the container build pipeline? I can't upload the image because there's a limitation of 10MB in the Azure DevOps\Library\Secure files feature.

CodePudding user response:

enter image description here

1.Upload your .tar to the container.

enter image description here

2.In your Azure Pipeline, you could use Azure CLI task to execute the enter image description here

enter image description here

Script sample:

mkdir $(Build.SourcesDirectory)\BlobFile
az storage blob download --container-name $(containername) --file $(Build.SourcesDirectory)\BlobFile\"sample.tar" --name "sample.tar"--account-key $(accountkey) --account-name $(accountname)
cd $(Build.SourcesDirectory)\BlobFile
ls
  • Related