sophie-lewis-hugo/.drone.yml

38 lines
911 B
YAML
Raw Normal View History

2022-12-23 22:32:58 +00:00
---
kind: pipeline
name: deploy to docker container
steps:
- name: hugo build
image: plugins/hugo
2022-12-23 22:33:47 +00:00
settings:
2022-12-23 22:32:58 +00:00
hugo_version: 0.87
validate: true
- name: docker cp deploy
image: 3wordchant/docker-cp-deploy:latest
settings:
host: swarm.autonomic.zone
service: customhtml_sophielewis_lasophielle_app
source: public/
dest: /usr/share/nginx/html
deploy_key:
from_secret: drone_ssh_swarm.autonomic.zone
depends_on:
- hugo build
- name: notify on failure
image: plugins/slack
settings:
username: comradebritney
channel: internal.robot-test-zone
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
when:
status:
- failure
trigger:
branch:
- main