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
Tyler Perkins cbb7490069
All checks were successful
continuous-integration/drone/push Build is passing
give failure notif different name
2022-12-17 20:54:57 -05:00

47 lines
1.0 KiB
YAML

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:
- cd /home/tyler/docker/site-container
- ./update.sh
- 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
when:
status:
- sucess
- name: notify-failure
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