As in the documnetation enter image description here even if changing the endpoint id the stack is getting deployed to the same local environment which has portainer server I want to deploy to the server containing portainer agent automatically
As in the documnetation enter image description here even if changing the endpoint id the stack is getting deployed to the same local environment which has portainer server I want to deploy the stack to the server containing portainer agent automated for the CI/CD