Deploy using external docker-compose

Hi there!
What I try to achieve is to update running container which was started using a docker-compose file (in order to be able to share volumes with other container).

So following “imagine how to do it in shell- replace commands in drone” way I think I need:

  1. Build new image with a proper tag
  2. SSH to the host and run docker-compose up -d service_name

I d like to replace the second step with
2.1 git clone repo_with_docker_compose_and_ansible
2.2 ansible-playbook infrastructure.yml --tags update_service_name

So my question is how would I be able to clone git repo from the same gitea instance inside .drone.yml? Is it possible to do it without dealing with secrets?

I’ve decided to use watchtower for now.