32 lines
631 B
YAML
32 lines
631 B
YAML
|
kind: pipeline
|
||
|
name: default
|
||
|
type: docker
|
||
|
steps:
|
||
|
- name: server
|
||
|
image: plugins/docker
|
||
|
environment:
|
||
|
DOCKER_BUILDKIT: 1
|
||
|
settings:
|
||
|
username: kasperhermansen
|
||
|
password:
|
||
|
from_secret:
|
||
|
docker_secret
|
||
|
repo: kasperhermansen/scel
|
||
|
tags: latest
|
||
|
context: .
|
||
|
dockerfile: Dockerfile
|
||
|
cache_from: kasperhermansen/scel:latest
|
||
|
|
||
|
- name: send telegram notification
|
||
|
image: appleboy/drone-telegram
|
||
|
settings:
|
||
|
token:
|
||
|
from_secret: telegram_token
|
||
|
to: 2129601481
|
||
|
format: markdown
|
||
|
depends_on:
|
||
|
- server
|
||
|
when:
|
||
|
status: [failure]
|
||
|
|