drone-ntfy/.drone.yml
Tyler Perkins 453a4ab465
All checks were successful
continuous-integration/drone/push Build is passing
Add main branch restriction (#12)
2022-12-16 21:24:37 -05:00

32 lines
683 B
YAML

kind: pipeline
name: default
steps:
- name: Build
image: plugins/docker
settings:
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
repo:
from_secret: dockerhub_repo
tags: latest
when:
branch:
- main
- name: notify
image: clortox/drone-ntfy
settings:
URL: https://ntfy.clortox.com
USERNAME: drone
PASSWORD:
from_secret: ntfy_password
TOPIC: drone-builds
MESSAGE: Drone-ntfy has finished building!
CLICK: https://drone.clortox.com/tyler/drone-ntfy
TITLE: Drone (drone-ntfy)
when:
branch:
- main