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:
- Build new image with a proper tag
- SSH to the host and run
docker-compose up -d service_name
I d like to replace the second step with
git clone repo_with_docker_compose_and_ansible
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?