--- kind: pipeline type: docker name: build steps: - name: docker image: plugins/docker settings: registry: docker.cybre.town repo: docker.cybre.town/adb/iid-homework tags: "latest" username: from_secret: docker_username password: from_secret: docker_password --- kind: pipeline type: docker name: deploy depends_on: - build steps: - name: pull and deploy image: appleboy/drone-ssh:linux-amd64 settings: host: from_secret: ssh_host username: from_secret: ssh_user_name key: from_secret: ssh_private_key script: | cd /media/docker/iid-homework docker compose -f docker-compose.prod.yml -p iid-homework pull -q docker compose -f docker-compose.prod.yml -p iid-homework up -d