---
kind: pipeline
name: deploy to docker container
steps:
- name: submodule
image: plugins/git
settings:
recursive: true
- name: docker cp deploy
image: 3wordchant/docker-cp-deploy:latest
depends_on:
- submodule
host: swarm.autonomic.zone
service: lasophielle_org_app
source: .
dest: /src
deploy_key:
from_secret: drone_ssh_swarm.autonomic.zone
- name: notify on failure
image: plugins/slack
username: comradebritney
channel: clients.sophie-lewis
template: "{{repo.owner}}/{{repo.name}} build failed: {{build.link}}. Last commit by @{{build.author}}"
webhook:
from_secret: rc_builds_url
- docker cp deploy
when:
status:
- failure
trigger:
branch:
- main