Hi, I have 2 questions.
1- In SSH remote command I have to put all commands in one line with AND ( && ) them together, I don't know why is that. I can't make them separate one command per line or even separate them with ; When I put ; between commands the "cd" command won't work. This is all I want to do:
cd /opt/telbot
docker pull myprivate_docker_registery.com/my_app:version-$(Build.BuildId)
TAG=version-$(Build.BuildId) docker-compose up -d myservice
But I have to do this like this:
cd /opt/telbot && docker pull myprivate_docker_registery.com/my_app:version-$(Build.BuildId) && TAG=version-$(Build.BuildId) docker-compose up -d myservice
I guess it's something about "cd" command. It can't run the "cd" but the other commands runs fine.
2- The docker compose up -d command does the job fine but it returns error on Azure pipeline. It recreates the app container with new image and leaves the MySQL alone. But it causes failure on job.

What should I do for these 2 problems ?? Thank you so much, I'm pretty newbie in Azure DevOps.