test-drone/.drone.yml

104 lines
2.0 KiB
YAML

kind: pipeline
type: docker
name: hello world
steps:
- name: Hello world!
image: registry.cuzo.dev/library/alpine
commands:
- echo Hello world!
- name: ¡Hola mundo!
image: registry.cuzo.dev/library/alpine
commands:
- echo ¡Hola mundo!
- name: send telegram notification
image: registry.cuzo.dev/appleboy/drone-telegram
when:
status: [success, failure]
settings:
to:
from_secret: tg_user
token:
from_secret: tg_password
- name: send matrix notification
image: registry.cuzo.dev/plugins/matrix@sha256:f1affb31b0c86963c97c6f976fa0dcb3cc84272057fd8558d609d28b3064bd7f
when:
status: [success, failure]
settings:
homeserver: https://matrix.cuzo.dev
roomid:
from_secret: matrix_room
userid:
from_secret: matrix_userid
accesstoken:
from_secret: matrix_token
- name: send ntfy notification
image: registry.cuzo.dev/parrazam/drone-ntfy
when:
status: [success, failure]
ref:
exclude:
- refs/tags/*
settings:
url: https://ntfy.parravidales.es
topic: pipelines
priority: low
tags:
- test
username:
from_secret: ntfy_user
password:
from_secret: ntfy_password
image_pull_secrets:
- custom_mirror_registry
trigger:
event:
exclude:
- pull_request
----
kind: pipeline
type: docker
name: Create release from tag
steps:
- name: release
image: registry.cuzo.dev/plugins/gitea-release
settings:
api_key:
from_secret: drone_api_key
files: [.drone.yml, README.md]
base_url: https://git.parravidales.es
when:
ref:
- refs/tags/*
- name: send ntfy notification
image: registry.cuzo.dev/parrazam/drone-ntfy
settings:
url: https://ntfy.parravidales.es
topic: pipelines
priority: low
tags:
- test
username:
from_secret: ntfy_user
password:
from_secret: ntfy_password
image_pull_secrets:
- custom_mirror_registry
depends_on:
- hello world
trigger:
event:
- tag