Comments (12)
@brookpatten Can you please run the workflow once and share the debug logs? Please create a secret ACTIONS_STEP_DEBUG and set it to true to get debug logs
from webapps-deploy.
@aksm-ms Here is the log for the step failing. I have omitted some strings to avoid posting anything confidential and have added Thank you for investigating.
with:
app-name: webapp-pass-depot-prod
images: ghcr.io/<omitted>/<omitted>:build-335
slot-name: production
package: .
env:
AZURE_HTTP_USER_AGENT:
AZUREPS_HOST_ENVIRONMENT:
##[debug]try-get AzureCLIAuthorizer
##[debug]"/usr/bin/az" account show
##[debug]"/usr/bin/az" cloud show
##[debug]"/usr/bin/az" account get-access-token
::add-mask::***
##[debug][GET] https://management.azure.com/subscriptions/<omitted>/resources?$filter=resourceType EQ 'Microsoft.Web%2FSites' AND name EQ 'webapp-pass-depot-prod'&api-version=2016-07-01
##[debug][GET] https://management.azure.com/subscriptions/<omitted>/resources?%24filter=resourceType+EQ+%27Microsoft.Web%2fSites%27+AND+name+EQ+%27webapp-pass-depot-prod%27&api-version=2016-07-01&%24skiptoken=<omitted>%3d
Error: Deployment Failed with Error: Error: Action does not support app service with kind linux,container.
##[debug]Deployment failed
##[debug]Node Action run completed with exit code 1
##[debug]AZURE_HTTP_USER_AGENT='GITHUBACTIONS_DeployWebAppToAzure_<omitted>'
##[debug]AZURE_HTTP_USER_AGENT=''
##[debug]Finishing: Deploy Api build-335 to prod
from webapps-deploy.
@brookpatten thanks for sharing logs. I have tried to reproduce the issue. While deploying to a linux webapp-container using the action, I did not get any errors.
Can you please try to run your workflow using 'azure/webapps-deploy@users/aksm-ms/linux-container-app-kind' instead of 'azure/webapps-deploy@v2' and share logs?
from webapps-deploy.
@brookpatten Can you please share the logs for debugging further?
from webapps-deploy.
Here is a log, thank you.
##[debug]Evaluating condition for step: 'Deploy Api v5.0.341 to prod'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Deploy Api v5.0.341 to prod
##[debug]Loading inputs
##[debug]Evaluating: format('webapp-pass-depot-***0***', github.event.inputs.environment)
##[debug]Evaluating format:
##[debug]..Evaluating String:
##[debug]..=> 'webapp-pass-depot-***0***'
##[debug]..Evaluating Index:
##[debug]....Evaluating Index:
##[debug]......Evaluating Index:
##[debug]........Evaluating github:
##[debug]........=> Object
##[debug]........Evaluating String:
##[debug]........=> 'event'
##[debug]......=> Object
##[debug]......Evaluating String:
##[debug]......=> 'inputs'
##[debug]....=> Object
##[debug]....Evaluating String:
##[debug]....=> 'environment'
##[debug]..=> 'prod'
##[debug]=> 'webapp-pass-depot-prod'
##[debug]Result: 'webapp-pass-depot-prod'
##[debug]Evaluating: format('ghcr.io/<omitted>/<omitted>:***0***', github.event.inputs.tag)
##[debug]Evaluating format:
##[debug]..Evaluating String:
##[debug]..=> 'ghcr.io/<omitted>/<omitted>:***0***'
##[debug]..Evaluating Index:
##[debug]....Evaluating Index:
##[debug]......Evaluating Index:
##[debug]........Evaluating github:
##[debug]........=> Object
##[debug]........Evaluating String:
##[debug]........=> 'event'
##[debug]......=> Object
##[debug]......Evaluating String:
##[debug]......=> 'inputs'
##[debug]....=> Object
##[debug]....Evaluating String:
##[debug]....=> 'tag'
##[debug]..=> 'v5.0.341'
##[debug]=> 'ghcr.io/<omitted>/<omitted>:v5.0.341'
##[debug]Result: 'ghcr.io/<omitted>/<omitted>:v5.0.341'
##[debug]Loading env
Run azure/webapps-deploy@users/aksm-ms/linux-container-app-kind
##[debug]try-get AzureCLIAuthorizer
##[debug]"/usr/bin/az" account show
##[debug]"/usr/bin/az" cloud show
##[debug]"/usr/bin/az" account get-access-token
::add-mask::***
##[debug][GET] https://management.azure.com/subscriptions/<omitted>/resources?$filter=resourceType EQ 'Microsoft.Web%2FSites' AND name EQ 'webapp-pass-depot-prod'&api-version=2016-07-01
##[debug][GET] https://management.azure.com/subscriptions/<omitted>/resources?%24filter=resourceType+EQ+%27Microsoft.Web%2fSites%27+AND+name+EQ+%27webapp-pass-depot-prod%27&api-version=2016-07-01&%24skiptoken=<omitted>
appKind: undefined; realKind: linux,container
Error: Deployment Failed with Error: Error: Action does not support app service with kind linux,container.
##[debug]Deployment failed
##[debug]Node Action run completed with exit code 1
##[debug]AZURE_HTTP_USER_AGENT='GITHUBACTIONS_DeployWebAppToAzure_<omitted>'
##[debug]AZURE_HTTP_USER_AGENT=''
##[debug]Finishing: Deploy Api v5.0.341 to prod
from webapps-deploy.
@brookpatten Thanks for sharing logs. Can you please confirm the resource you are using in the following workflow is a Azure web app for container?
- name: Deploy
uses: Azure/webapps-deploy@v2
with:
app-name: web-app-foo-${{ github.event.inputs.environment }}
images: ghcr.io/client-name/image-name:tag
Please refer Azure Web Apps for Containers
from webapps-deploy.
Yes, it absolutely is. In fact It is already running the image since I configured it manually using azure portal.
The one thing that may make it atypical is that it is in an App Service Environment, not the normal azure cloud, but it is definitely an azure app service. As I said we have two such environments, for one it works no problem, for the other it does not.
from webapps-deploy.
@brookpatten Can you please elaborate app service environment?
from webapps-deploy.
@aksm-ms It's an offering from MS which offers network isolation, among other things, I am not an expert, but here is an article about it https://azure.github.io/AppService/2020/09/22/asev3-public-preview-preannouncement.html
from webapps-deploy.
@N-Usha Currently we do not support app kind "linux,container" in action code. Can we add this as a future enhancement?
from webapps-deploy.
As discussed with @N-Usha, marking this as enhancement.
from webapps-deploy.
This issue is stale because it has been open for 14 days with no activity. Please remove the stale label or comment on the issue otherwise this will be closed in 5 days
from webapps-deploy.
Related Issues (20)
- README doesn't have a v3 example or explanation of the differences HOT 4
- Add sample(s) for OIDC HOT 1
- Azure Web App deployment from .zip fails after successfully deploying the content HOT 2
- V3 using node.js 16 upgrade to node.js 20 seeing 16 is deprecated HOT 16
- Deploy to web app does not working for .NET 8 and Linux based deployment - azure/webapps-deploy@v3 HOT 4
- Microsoft Azure Build and deploy PHP app to Azure Web App: Laravel App - Unable to create lockable file HOT 2
- Deployment Faile***, Error: Resource azwb********-tot doesn't exist. HOT 5
- The new option Clean should have defaulted to false or been highlighted as a breaking change HOT 4
- Azure Web Application not updated, action still claims "Success" HOT 9
- Can't deploy to ACA-based Function App
- Cann't show submit messages, ONLY show OneDeploy
- Parameter ''using: node20' is not supported, use 'docker', 'node12' or 'node16' instead.'
- nodes
- util_1.promisify is not a function HOT 4
- Long deployment urls are cut off for slots HOT 1
- update
- Deploying Web Apps with Sidecar Containers HOT 2
- Central Directory corrupt error when deploying zip with WEBSITE_RUN_FROM_PACKAGE = 1 on linux
- Please upgrade the SQlite version on the default Python images
- Temp files to delete
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webapps-deploy.