34 lines
682 B
YAML
34 lines
682 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
|
|
when:
|
|
event:
|
|
include:
|
|
- push
|
|
- tag
|
|
- promote
|
|
|
|
- name: send telegram notification
|
|
image: appleboy/drone-telegram
|
|
settings:
|
|
token:
|
|
from_secret: telegram_token
|
|
to: 2129601481
|
|
format: markdown
|
|
when:
|
|
status: [failure]
|