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 132b7df873
All checks were successful
continuous-integration/drone/push Build is passing
Drop Hugo version..
..in case that fixes "2022/12/23 22:34:16 unexpected EOF" here:
https://drone.autonomic.zone/autonomic-cooperative/sophie-lewis-hugo/2/1/2
2022-12-23 14:36:32 -08:00

37 lines
886 B
YAML

---
kind: pipeline
name: deploy to docker container
steps:
- name: hugo build
image: plugins/hugo
settings:
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