Giter VIP home page Giter VIP logo

azure-storage-action's Introduction

Que tal?, Soy Lautaro 👋

📌 Aquí hay algunas cosas que me describen:

  • 💼  Actualmente estoy trabajando en Algeiba como Desarrollador de Soluciones de Software
  • 🔖  Actualmente soy uno de los organizadores Latino .NET Online
  • 🔭  Mi objetivo personal es convertirme en un arquitecto de software
  • 💻  Paso la mayor parte de mi tiempo escribiendo C# tanto con Blazor como en el desarrollo de Web-Api
  • 🌱  Actualmente estoy aprendiendo .NET 6
  • 💬  Pregúntame sobre cualquier cosa, estaré encantado de ayudarte.
  • 📫  Como encontrarme: Twitter | Linkedin | Email | Website 🚀
  • ⚡  Fun fact: I ❤️ programming!!😄

📩 Últimos Articulos del Blog

📦 Lenguajes y Tecnología:


📊 GitHub Stats Lautaro Carro GitHub Stats

azure-storage-action's People

Contributors

krumelur avatar lauchacarro avatar miniksa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

azure-storage-action's Issues

Unhandled exception. Azure.RequestFailedException: The value for one of the XML nodes is not in the correct format.

I'm suddenly getting this error when deploying usin the Azure storage action. It worked fine a few months ago and didn't change anything on Azure.
Any ideas what could be causing this?

Here's the stack trace I'm seeing in the failed build step:

at Azure.Storage.Blobs.BlobRestClient.Service.SetPropertiesAsync_CreateResponse(Response response)
at Azure.Storage.Blobs.BlobRestClient.Service.SetPropertiesAsync(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri resourceUri, BlobServiceProperties blobServiceProperties, Nullable`1 timeout, String requestId, Boolean async, String operationName, CancellationToken cancellationToken)
at Azure.Storage.Blobs.BlobServiceClient.SetPropertiesInternal(BlobServiceProperties properties, Boolean async, CancellationToken cancellationToken)
at Azure.Storage.Blobs.BlobServiceClient.SetPropertiesAsync(BlobServiceProperties properties, CancellationToken cancellationToken)
at AzureStorageAction.BlobCommands.Commands.EnabledStaticWebSiteCommand.ExecuteAction() in /home/runner/work/_actions/lauchacarro/Azure-Storage-Action/master/src/AzureStorageAction/BlobCommands/Commands/EnabledStaticWebSiteCommand.cs:line 45
at AzureStorageAction.BlobCommands.BlobCommandManager.ExecuteCommand() in /home/runner/work/_actions/lauchacarro/Azure-Storage-Action/master/src/AzureStorageAction/BlobCommands/BlobCommandManager.cs:line 19
at AzureStorageAction.Program.Main(String[] args) in /home/runner/work/_actions/lauchacarro/Azure-Storage-Action/master/src/AzureStorageAction/Program.cs:line 25
at AzureStorageAction.Program.

(String[] args)
Error: The process '/opt/hostedtoolcache/dncs/3.0.100/x64/dotnet' failed with exit code 134
at ExecState._setResult (/home/runner/work/_actions/lauchacarro/Azure-Storage-Action/master/node_modules/@actions/exec/lib/toolrunner.js:561:25)
at ExecState.CheckComplete (/home/runner/work/_actions/lauchacarro/Azure-Storage-Action/master/node_modules/@actions/exec/lib/toolrunner.js:544:18)
at ChildProcess. (/home/runner/work/_actions/lauchacarro/Azure-Storage-Action/master/node_modules/@actions/exec/lib/toolrunner.js:444:27)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
Error: The process '/opt/hostedtoolcache/dncs/3.0.100/x64/dotnet' failed with exit code 134
at ExecState._setResult (/home/runner/work/_actions/lauchacarro/Azure-Storage-Action/master/node_modules/@actions/exec/lib/toolrunner.js:561:25)
at ExecState.CheckComplete (/home/runner/work/_actions/lauchacarro/Azure-Storage-Action/master/node_modules/@actions/exec/lib/toolrunner.js:544:18)
at ChildProcess. (/home/runner/work/_actions/lauchacarro/Azure-Storage-Action/master/node_modules/@actions/exec/lib/toolrunner.js:444:27)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)

Issue with deploying

I'm using the following code to image assets to deploy azure blob storage, modeled after your sample workflow.

jobs:
  deploy_linux:
    runs-on: ubuntu-latest
  
    steps:
    - name: Checkout Branch
      uses: actions/checkout@master

    - name: Upload static assets to CDN 
      uses: lauchacarro/Azure-Storage-Action@master
      with:
        folder: 'sites/statics/assets'
        connection-string: ${{ secrets.AZURE_CS_STORAGE }}
        public-access-policy: Blob
        blob-container-name: 'assets'

Error can be found here though isn't clear what the issue is.

Unhandled exception. Azure.RequestFailedException: Response x-ms-client-request-id '80a5ce06-15bd-4bd8-b36e-4ef680cfe2bc' does not match the original expected request id, 'd17f64e8-4ce2-413a-a83f-cbcbc046b204'.
Status: 200 (OK)

Any ideas what's going on? Thanks

Deleting exiting files in web$

Hello,

Is there is a way of deleting the existing file(s) & folders in azure storage web$ before deployment ?

Thanks
Tarun

ps - great plugin, thanks for your work on this.

Unexpected input(s) 'index-document', 'error-document', valid inputs are ['connection-string', 'folder', 'blob-container-name', 'public-access-policy', 'enabled-static-website']

Unexpected input(s) 'index-document', 'error-document', valid inputs are ['connection-string', 'folder', 'blob-container-name', 'public-access-policy', 'enabled-static-website']

- name: Deploy to storage
      uses: lauchacarro/[email protected]
      with:
        enabled-static-website: 'true'
        folder: ${{ env.OUTPUT_PATH }}/webapp/wwwroot
        index-document: 'index.html'
        error-document: 'index.html' 
        connection-string: ${{ secrets.BLOB_STORAGE_CONNECTION_STRING }}

Workflow is overwriting index and 404 documents

Using the workflow will always overwrite the configured index and 404 documents.
By inspecting the code I found that setting

enabled-static-website: 'false'

should probably avoid this issue. However, this will cause an exception:

Additional Information:
2020-05-11T10:32:55.8556903Z LineNumber: 1
2020-05-11T10:32:55.8557055Z LinePosition: 714
2020-05-11T10:32:55.8557366Z Reason: Element IndexDocument is only expected when StaticWebsite/Enabled is enabled.

Optimally, I'd be able to specify the index and 404 documents per parameter instead of having them hardcoded as const

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.