0

我正在使用 Azure 生成的工作流,我刚刚将其更改为使用 yarn 而不是 npm。它通过了构建阶段,大约需要一个小时来上传工件等,最后它进入了部署阶段,它给了我以下信息:


Error: Failed to deploy web package to App Service.
Error: Deployment Failed with Error: Error: Failed to deploy web package to App Service. 
Conflict (CODE: 409)

我如何找到有关确切问题的更多信息?我看过有关 azure 的日志,但我必须承认我对 azure 了解不多。

该应用程序本身基本上只是一个创建反应应用程序。我正在使用craco,但我认为这不会引起问题?

这是工作流文件:

name: UAT/CRA
on:
  push:
    branches:
      - master
  workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - name: Set up Node.js version
        uses: actions/setup-node@v1
        with:
          node-version: "14.x"

      - name: npm install, build, and test
        run: |
          yarn
          yarn build --if-present
      - name: Upload artifact for deployment job
        uses: actions/upload-artifact@v2
        with:
          name: node-app
          path: .

  deploy:
    runs-on: ubuntu-latest
    needs: build
    environment:
      name: "production"
      url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

    steps:
      - name: Download artifact from build job
        uses: actions/download-artifact@v2
        with:
          name: node-app

      - name: "Deploy to Azure Web App"
        id: deploy-to-webapp
        uses: azure/webapps-deploy@v2
        with:
          app-name: "UAT"
          slot-name: "production" 
          package: .
4

0 回答 0