AzureBlob delete files before deploy
Is it possible for appveyor to delete all files before deployment to AzureBlob static webpage storage?
We are publishing a single-page-application which is composed of uniquely named files that change on every build.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 23 Apr, 2020 04:55 PM
Like delete container all together (fast) or you need to preserve container and iterate through all its blobs (slower)?
2 Posted by rok.lenardic on 24 Apr, 2020 05:21 AM
Not delete the whole container, just the files+folders in a folder or subfolder?
3 Posted by rok.lenardic on 28 Apr, 2020 05:56 PM
@Feodor: Any update?
Support Staff 4 Posted by Feodor Fitsner on 28 Apr, 2020 06:04 PM
I don't have an ETA yet, but definitely provider could be improved. I'm going to work on it this week. Could you please send me an URL with more info about static sites in Azure blobs?
5 Posted by rok.lenardic on 28 Apr, 2020 06:10 PM
Hi Feodor, that sounds good. I believe Azure static sites are nothing but a container called $web within the blob service. Hence, you should be able to use the standard Azure storage API (Powershell or API).
Let me know if I should dig deeper?
Support Staff 6 Posted by Feodor Fitsner on 28 Apr, 2020 06:22 PM
So, to make a full-featured integration we'd need to add:
1) Container cleanup before publishing;
2) Custom headers support (like setting gzip header)?
3) anything else?
Could you please summarize what are you missing right now?
7 Posted by rok.lenardic on 29 Apr, 2020 11:27 AM
Hi Feodor,
1) Yes, this would be great.
2) This turns out that it is not as important since using Azure Storage Static Webpages alone is VERY limitting and you very soon have to add the Azure CDN component that takes care of caching/compression.
So that's about it.
Thank!
Rok
Support Staff 8 Posted by Feodor Fitsner on 29 Apr, 2020 11:22 PM
Hi Rok,
This is what we are going to do and deploy this week: https://github.com/appveyor/ci/issues/3409
Feel free to subscribe to that issue or/and leave comment.
9 Posted by rok.lenardic on 30 Apr, 2020 06:28 AM
That's really great news! Have subscribed to that issue
Thank you!
Rok
Support Staff 10 Posted by Feodor Fitsner on 05 May, 2020 03:33 AM
Hi Rok,
We've deployed AppVeyor update with Azure Blob deployment improvements, including deletion of files. Please see updated docs here: https://www.appveyor.com/docs/deployment/azure-blob/
Let me know how that worked for you.
11 Posted by rok.lenardic on 22 Jun, 2020 05:57 AM
Yes, this indeed resolves our issue, Thank you!
rok.lenardic closed this discussion on 22 Jun, 2020 05:57 AM.