v3 deployment does not work with clean:false
- Dominant language
- TypeScript
- Stars
- 338
- Forks
- 234
- Avg merge
- 53m
- Merged PRs (30d)
- 3
Description
We had a deployment that worked great with `v2`:
```yaml
- name: Deploy to Azure
uses: azure/webapps-deploy@v2
with:
app-name: psw-docs
slot-name: test
publish-profile: ${{ secrets.AZURE_TEST_PUBLISH_PROFILE }}
package: output/site
```
We attempted to update to `v3`, and while it deployed with the same configuration, it took the site offline during the deploy. That didn't happen before and we don't want it to happen now. So we amended the configuration to include `clean: false`.
```yaml
- name: Deploy to Azure
uses: azure/webapps-deploy@v3
with:
app-name: psw-docs
slot-name: test
publish-profile: ${{ secrets.AZURE_TEST_PUBLISH_PROFILE }}
package: output/site
clean: false
```
**By the way, it would be great to document those options in the README, not just in the [v3 release](https://github.com/Azure/webapps-deploy/releases/tag/v3.0.0). In fact, all the examples in the README still use v2.**
Then the deployment fails. Here is the output in GitHub Actions:
```log
2023-12-20T18:30:07.7705354Z ##[group]Run azure/webapps-deploy@v3
2023-12-20T18:30:07.7706038Z with:
2023-12-20T18:30:07.7706490Z app-name: psw-docs
2023-12-20T18:30:07.7707042Z slot-name: test
2023-12-20T18:30:07.7718959Z publish-profile: ***
2023-12-20T18:30:07.7719544Z package: output/site
2023-12-20T18:30:07.7720199Z clean: false
2023-12-20T18:30:07.7720629Z env:
2023-12-20T18:30:07.7720995Z DOTNET_NOLOGO: true
2023-12-20T18:30:07.7721553Z DOTNET_ROOT: C:\Program Files\dotnet
2023-12-20T18:30:07.7722292Z MinVerVersion: 6.0.2-alpha.0.6
2023-12-20T18:30:07.7722863Z MinVerMajor: 6
2023-12-20T18:30:07.7723321Z MinVerMinor: 0
2023-12-20T18:30:07.7723721Z MinVerPatch: 2
2023-12-20T18:30:07.7724226Z MinVerPreRelease: alpha.0.6
2023-12-20T18:30:07.7724787Z MinVerBuildMetadata:
2023-12-20T18:30:07.7725356Z ##[endgroup]
2023-12-20T18:30:14.1926100Z Package deployment using OneDeploy initiated.
2023-12-20T18:30:21.0489131Z {
2023-12-20T18:30:21.0490294Z id: 'e8495a528dc742a78ee27b782f9b0ceb',
2023-12-20T18:30:21.0491113Z status: 3,
2023-12-20T18:30:21.0491802Z status_text: '',
2023-12-20T18:30:21.0492401Z author_email: 'N/A',
2023-12-20T18:30:21.0493165Z author: 'N/A',
2023-12-20T18:30:21.0494146Z deployer: 'OneDeploy',
2023-12-20T18:30:21.0494846Z message: 'OneDeploy',
2023-12-20T18:30:21.0495461Z progress: '',
2023-12-20T18:30:21.0496149Z received_time: '2023-12-20T18:30:16.7194795Z',
2023-12-20T18:30:21.0497846Z start_time: '2023-12-20T18:30:16.8288513Z',
2023-12-20T18:30:21.0499008Z end_time: '2023-12-20T18:30:17.0475987Z',
2023-12-20T18:30:21.0500132Z last_success_end_time: null,
2023-12-20T18:30:21.0500799Z complete: true,
2023-12-20T18:30:21.0501307Z active: false,
2023-12-20T18:30:21.0501796Z is_temp: false,
2023-12-20T18:30:21.0502301Z is_readonly: true,
2023-12-20T18:30:21.0510369Z url: 'https://psw-docs-test.scm.azurewebsites.net/api/deployments/latest',
2023-12-20T18:30:21.0511920Z log_url: 'https://psw-docs-test.scm.azurewebsites.net/api/deployments/latest/log',
2023-12-20T18:30:21.0513016Z site_name: 'psw-docs',
2023-12-20T18:30:21.0513690Z provisioningState: 'Failed'
2023-12-20T18:30:21.0514710Z }
2023-12-20T18:30:21.2240281Z Updating submodules.
2023-12-20T18:30:21.2241898Z Preparing deployment for commit id 'e8495a528d'.
2023-12-20T18:30:21.2242773Z Running build. Project type: OneDeploy
2023-12-20T18:30:21.2243450Z Copying the manifest
2023-12-20T18:30:21.2244114Z Incrementally deploying to C:\home\site\wwwroot
2023-12-20T18:30:21.2244872Z Deployment Failed.
2023-12-20T18:30:21.2290355Z ##[error]Failed to deploy web package to App Service.
2023-12-20T18:30:21.2306544Z ##[error]Deployment Failed, Package deployment using ZIP Deploy failed. Refer logs for more details.
2023-12-20T18:30:21.2309806Z App Service Application URL: http://psw-docs-test.azurewebsites.net
```
It says "Refer logs for more details", but here is the JSON from the kudu logs, which is … less than helpful:
```json
[
{
"log_time": "2023-12-20T18:30:16.7663452Z",
"id": "2c2e9f7b-fdd2-4c86-b81e-97d317d7f68e",
"message": "Updating submodules.",
"type": 0,
"details_url": null
},
{
"log_time": "2023-12-20T18:30:16.8132222Z",
"id": "7ecde5eb-5d91-427c-bc6c-de2c3ce67eaa",
"message": "Preparing deployment for commit id 'e8495a528d'.",
"type": 0,
"details_url": null
},
{
"log_time": "2023-12-20T18:30:16.8913471Z",
"id": "eac1d918-d3cf-4f5b-8ad7-f134361236ce",
"message": "Running build. Project type: OneDeploy",
"type": 0,
"details_url": null
},
{
"log_time": "2023-12-20T18:30:16.9225971Z",
"id": "769e6e9a-00af-4f3d-b3a2-8f89ca827e73",
"message": "Copying the manifest",
"type": 0,
"details_url": null
},
{
"log_time": "2023-12-20T18:30:17.0007244Z",
"id": "7bc57f67-304d-47ec-9af7-e8f05e596dc9",
"message": "Incrementally deploying to C:\\home\\site\\wwwroot",
"type": 0,
"details_url": null
},
{
"log_time": "2023-12-20T18:30:17.1257204Z",
"id": "ebd7770e-664a-4293-9899-579b1b376b10",
"message": "Deployment Failed.",
"type": 0,
"details_url": null
}
]
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.