2022-12-23 22:32:58 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: deploy to docker container
|
|
|
|
steps:
|
2022-12-23 23:15:05 +00:00
|
|
|
- name: submodule
|
|
|
|
image: plugins/git
|
|
|
|
settings:
|
|
|
|
recursive: true
|
2022-12-27 19:43:34 +00:00
|
|
|
# - name: docker cp deploy
|
|
|
|
# image: 3wordchant/docker-cp-deploy:latest
|
|
|
|
# depends_on:
|
|
|
|
# - submodule
|
|
|
|
# settings:
|
|
|
|
# host: swarm.autonomic.zone
|
|
|
|
# service: lasophielle_org_app
|
|
|
|
# source: .
|
|
|
|
# dest: /src
|
|
|
|
# deploy_key:
|
|
|
|
# from_secret: drone_ssh_swarm.autonomic.zone
|
|
|
|
# when:
|
|
|
|
# branch:
|
|
|
|
# - main
|
2022-12-27 19:41:31 +00:00
|
|
|
- name: docker cp deploy staging
|
|
|
|
image: 3wordchant/docker-cp-deploy:latest
|
|
|
|
depends_on:
|
|
|
|
- submodule
|
|
|
|
settings:
|
|
|
|
host: swarm.autonomic.zone
|
|
|
|
service: lasophielle-staging_autonomic_zone_app
|
|
|
|
source: .
|
|
|
|
dest: /src
|
|
|
|
deploy_key:
|
|
|
|
from_secret: drone_ssh_swarm.autonomic.zone
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- staging
|
2022-12-23 22:32:58 +00:00
|
|
|
- name: notify on failure
|
|
|
|
image: plugins/slack
|
|
|
|
settings:
|
|
|
|
username: comradebritney
|
2022-12-23 23:59:28 +00:00
|
|
|
channel: clients.sophie-lewis
|
2022-12-23 22:32:58 +00:00
|
|
|
template: "{{repo.owner}}/{{repo.name}} build failed: {{build.link}}. Last commit by @{{build.author}}"
|
|
|
|
webhook:
|
|
|
|
from_secret: rc_builds_url
|
|
|
|
depends_on:
|
2022-12-27 19:43:34 +00:00
|
|
|
# - docker cp deploy
|
2022-12-27 19:41:31 +00:00
|
|
|
- docker cp deploy staging
|
2022-12-23 22:32:58 +00:00
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- failure
|