-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v3 deployment does not work with clean:false #386
Comments
This issue is idle because it has been open for 14 days with no activity. |
Not idle, just holidays. 😄 |
This issue is idle because it has been open for 14 days with no activity. |
Still valid, please do not close. |
Hi @DavidBoike, We should expect some downtime even with v2, as the WebApp needs to be restarted before the changes can take effect. Furthermore, in the case of deploying a ZIP file, v3 behaves very similarly to v2 in that both will unpack and deploy the contents of the ZIP to wwwroot. Can you provide some further details regarding the difference in downtime you observed between v2 and v3. As for the failed deployment, I took a look at some backend logs and it looks like the deployment ran into a file locking issue which caused the deployment to fail. Here is the error message I found: |
I'm having the same issue. All I've done to update is change the |
@jasperfirecai2 do you mind sharing the name of the webapp you are trying to deploy to? |
Unfortunately i can't do that due to company NDA. |
@jasperfirecai2 I have seen this behavior in the past when the deployed artifact is packaged as a folder rather than a zip. Can you confirm that your artifact is being packaged as a ZIP and not a folder? |
the build workflow is as follows - name: npm install only prod, build
run: |
npm install --omit=dev
npm run build --if-present
- name: Archive build from node ${{ inputs.node_version }}
run: zip -r release.zip node_modules .next next.config.js package.json package-lock.json
- name: Upload artifact for deploy
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.name }}
path: <workingdirectory>/release.zip (dir name is redacted) - name: Download artifact from test job
uses: actions/download-artifact@v4
with:
name: ${{ file-name }}
path: .
- name: Deploy to main Azure Web App
id: deploy-to-main-webapp
uses: azure/webapps-deploy@v3
with:
app-name: ${{ app-name }}
publish-profile: ${{ secret }}
package: release.zip
clean: false
|
@jasperfirecai2 Without the name of the webapp being deployed to, I do not have much to go off of to investigate. Would you be willing to post the output you get when running the Github Action? You can also share the name of your webapp privately with me by sending me an email to dannysong@microsoft.com |
Aside from the fact that the deployment doesn't work if the flag is FALSE, has anyone else had the experience of it cleaning the directory if you don't provide a value for the parameter? I would expect that if you don't provide a parameter (since it's optional) that the system would DEFAULT to false, but we have experienced the directory being cleaned when no parameter is provided - whereas V2 did not clean. |
@dannysongg
Those 'logs' are nowhere to be found |
We had a deployment that worked great with
v2
: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 includeclean: false
.By the way, it would be great to document those options in the README, not just in the v3 release. In fact, all the examples in the README still use v2.
Then the deployment fails. Here is the output in GitHub Actions:
It says "Refer logs for more details", but here is the JSON from the kudu logs, which is … less than helpful:
The text was updated successfully, but these errors were encountered: