Tarun Bhatt
Tarun Bhatt

Reputation: 827

Why does AzureStaticWebApp@0 trigger docker command

I am facing an issue with the task AzureStaticWebApp@0. AzureStaticWebApp@0 uses docker command in the background. See image below: enter image description here

We have been advised to only in-house agents and we don't have any agent which is UNIX based and can run the docker command. The problem this creates is that I need to use different agents for different tasks which is opening up another set of problems (For ex - Azure DevOps + Azure Static Web App - Read deployment token from variables)

My DevOps team has asked me to investigate why AzureStaticWebApp@0 use docker commands in the background.

Upvotes: 1

Views: 846

Answers (1)

Kevin Lu-MSFT
Kevin Lu-MSFT

Reputation: 35514

Refer to this doc: Azure Static Web Apps

Azure Static Web Apps' build engine runs in a Linux Docker container, so it can only be run on a Linux build agent.

Since Azure Static Web App depends on Docker environment, it will run docker command in the background.

And the AzureStaticWebApp task only runs on Linux agents.

Upvotes: 2

Related Questions