This repository has been archived on 2023-01-31. You can view files and clone it, but cannot push or open issues or pull requests.
sophie-lewis-hugo/.drone.yml
3wc 5d664b9085
All checks were successful
continuous-integration/drone/push Build is passing
Revert temp. disabling
2022-12-27 11:44:27 -08:00

51 lines
1.2 KiB
YAML

---
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
settings:
host: swarm.autonomic.zone
service: lasophielle_org_app
source: .
dest: /src
deploy_key:
from_secret: drone_ssh_swarm.autonomic.zone
when:
branch:
- main
- 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
- name: notify on failure
image: plugins/slack
settings:
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
depends_on:
- docker cp deploy
- docker cp deploy staging
when:
status:
- failure