I am setting up a CI/CD pipeline in Azure DevOps to deploy the NodeJS app on a Linux hosted app service. The problem is that I have to run all the apt-get script manually, that was created after the deployment.
YAML code for the deployment:
- stage: Deploy
displayName: Deploy stage
- deployment: Deploy
- task: AzureWebApp@1
displayName: 'Azure Web App Deploy:'
startUpCommand: 'pm2 start index.js --no-daemon'
- script: sudo apt-get update
displayName: apt update
- script: sudo apt-get -y [SOME LIBS]
displayName: try install dependencies
Any solution would be grateful.