Azure / container-apps-deploy-pipelines-task

Azure Pipelines Task (Release Candidate) for building and deploying Azure Container Apps
MIT License
6 stars 10 forks source link

Cannot run AzureContainerAppsV0 tasks on Win32 agents #6

Closed icornett closed 1 year ago

icornett commented 1 year ago

I'm unable to run this task on a Windows agent due to a dependency on bash. Please create a pwsh invocation for the same with a Win32 check and download package

Starting: AzureContainerAppsRC
==============================================================================
Task         : Azure Container Apps Deploy (Release Candidate)
Description  : An Azure DevOps Task to build and deploy Azure Container Apps.
Version      : 0.1.7
Author       : Microsoft Corporation
Help         : [Learn more about this task](http://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/AzureContainerAppsV0/README.md)
==============================================================================
##[error]`Unable to run provided bash command '(curl -sSL "[https://github.com/buildpacks/pack/releases/download/v0.27.0/pack-v0.27.0-linux.tgz"](https://github.com/buildpacks/pack/releases/download/v0.27.0/pack-v0.27.0-linux.tgz%22) | tar -C /usr/local/bin/ --no-same-owner -xzv pack)'.
##[error]Unable to install pack CLI.
##[error]Unable to locate executable file: 'bash'. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.
Finishing: AzureContainerAppsRC
cormacpayne commented 1 year ago

@icornett Hey Ian, apologies for the delayed response; thanks for the issue and the follow up pull request that you've opened. This is definitely an issue that should be resolved, so I'll take a look at getting your pull request merged and releasing a new version of this AzureContainerAppsRC task in the near future with the changes. Thanks!

cormacpayne commented 1 year ago

@icornett Hey Ian, this issue is resolved in the latest release of the AzureContainerAppsRC task with an update made to our documentation -- unfortunately, there's still no way to run this task on Microsoft-hosted Windows or macOS runners due to the reasons called out here. For self-hosted Windows or macOS runners, this task should be usable with proper installation of Docker, as outlined here.

For now I'm going to close this issue, but if there are any updates in the future to the software available on the Microsoft-hosted Windows or macOS runners that would enable this task for those operating systems, I will follow-up here.