AzureBlob delete files before deploy

rok.lenardic's Avatar

rok.lenardic

23 Apr, 2020 06:56 AM

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.

  1. Support Staff 1 Posted by Feodor Fitsner on 23 Apr, 2020 04:55 PM

    Feodor Fitsner's Avatar

    Like delete container all together (fast) or you need to preserve container and iterate through all its blobs (slower)?

  2. 2 Posted by rok.lenardic on 24 Apr, 2020 05:21 AM

    rok.lenardic's Avatar

    Not delete the whole container, just the files+folders in a folder or subfolder?

  3. 3 Posted by rok.lenardic on 28 Apr, 2020 05:56 PM

    rok.lenardic's Avatar

    @Feodor: Any update?

  4. Support Staff 4 Posted by Feodor Fitsner on 28 Apr, 2020 06:04 PM

    Feodor Fitsner's Avatar

    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. 5 Posted by rok.lenardic on 28 Apr, 2020 06:10 PM

    rok.lenardic's Avatar

    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?

  6. Support Staff 6 Posted by Feodor Fitsner on 28 Apr, 2020 06:22 PM

    Feodor Fitsner's Avatar

    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. 7 Posted by rok.lenardic on 29 Apr, 2020 11:27 AM

    rok.lenardic's Avatar

    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

  8. Support Staff 8 Posted by Feodor Fitsner on 29 Apr, 2020 11:22 PM

    Feodor Fitsner's Avatar

    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. 9 Posted by rok.lenardic on 30 Apr, 2020 06:28 AM

    rok.lenardic's Avatar

    That's really great news! Have subscribed to that issue
    Thank you!
    Rok

  10. Support Staff 10 Posted by Feodor Fitsner on 05 May, 2020 03:33 AM

    Feodor Fitsner's Avatar

    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. 11 Posted by rok.lenardic on 22 Jun, 2020 05:57 AM

    rok.lenardic's Avatar

    Yes, this indeed resolves our issue, Thank you!

  12. rok.lenardic closed this discussion on 22 Jun, 2020 05:57 AM.

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

Recent Discussions

02 Jul, 2020 03:24 PM
01 Jul, 2020 08:32 PM
01 Jul, 2020 01:12 PM
30 Jun, 2020 04:26 PM
25 Jun, 2020 05:54 PM