This repository has been archived on 2023-05-27. You can view files and clone it, but cannot push or open issues or pull requests.
site/.drone.yml

47 lines
1.0 KiB
YAML
Raw Permalink Normal View History

2022-12-16 23:41:38 +00:00
kind: pipeline
name: default
steps:
- name: Update
image: appleboy/drone-ssh
settings:
host:
- greed.clortox.com
username: tyler
password:
from_secret: ssh_password
port: 22
command_timeout: 2m
script:
2022-12-16 23:43:53 +00:00
- cd /home/tyler/docker/site-container
- ./update.sh
2022-12-18 00:45:25 +00:00
- name: notify
image: clortox/drone-ntfy
settings:
URL: https://ntfy.clortox.com
USERNAME: drone
PASSWORD:
from_secret: ntfy_password
TOPIC: drone-builds
MESSAGE: Site build done!
CLICK: https://drone.clortox.com/tyler/site
TITLE: Drone build
2022-12-18 01:53:05 +00:00
when:
status:
- sucess
2022-12-18 01:54:57 +00:00
- name: notify-failure
2022-12-18 01:53:05 +00:00
image: clortox/drone-ntfy
settings:
URL: https://ntfy.clortox.com
USERNAME: drone
PASSWORD:
from_secret: ntfy_password
TOPIC: drone-builds
TAG: warning
MESSAGE: Site build has failed!
CLICK: https://drone.clortox.com/tyler/site
TITLE: Drone build
when:
status:
- failure