I'm PHP-Developer and pretty new to Azure Devops. At the moment I am struggeling a bit by creating an optimal CI-process with Azure Devops.
Im working locally with Docker(DDEV) and want to deploy my php-application including my NodeJS-Frontend to my customers webspaces. I have got SSH-Access to these Servers, can get PHP, Node, Composer etc. but I am just thinking that building my whole website on a production-Server during my deployment seems not to be a good solution.
Does anybody have experience with this kind of deployment with Azure Devops?
My current workflow is:
1. Build ubuntu Image
2. Install php in image
3. Composer install in image
4. Node install
5. Npm install
6. Start frontend build
7. Copy files to build artefact (frontend builts including composer.lock for php without vendor folder)
8. Publish build artifact
1. Download artefact
2. Copy files from artefact to target host via SSH
3. Composer install on target system
4. Deleting Caches
5. Finalize Job
It feels not really optimal and my tests are still not included. But any help is more than welcome. Im really interested in finding a better way.
If somebody either knows good documentation, screencast or direct community access, let me know. :)
Greetz from Cologne - Germany