test-drone/.drone.yml

104 lines
2.0 KiB
YAML
Raw Normal View History

2022-05-26 18:16:36 +02:00
kind: pipeline
type: docker
name: hello world
steps:
- name: Hello world!
image: registry.cuzo.dev/library/alpine
2022-05-26 18:16:36 +02:00
commands:
- echo Hello world!
- name: ¡Hola mundo!
image: registry.cuzo.dev/library/alpine
2022-05-26 18:16:36 +02:00
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
2023-02-09 12:13:33 +01:00
- 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
2023-02-09 13:32:52 +01:00
- name: send ntfy notification
image: registry.cuzo.dev/parrazam/drone-ntfy
when:
status: [success, failure]
ref:
exclude:
- refs/tags/*
2023-02-09 13:32:52 +01:00
settings:
2023-02-09 15:52:16 +01:00
url: https://ntfy.parravidales.es
2023-02-09 17:43:23 +01:00
topic: pipelines
2023-02-09 16:44:35 +01:00
priority: low
tags:
- test
2023-02-09 17:43:23 +01:00
username:
2023-02-09 15:52:16 +01:00
from_secret: ntfy_user
2023-02-09 17:43:23 +01:00
password:
2023-02-09 15:52:16 +01:00
from_secret: ntfy_password
2023-02-09 13:32:52 +01:00
image_pull_secrets:
- custom_mirror_registry
2022-06-14 18:05:15 +02:00
trigger:
event:
exclude:
- pull_request
2022-06-14 18:05:15 +02:00
----
kind: pipeline
type: docker
name: Create release from tag
steps:
- name: release
image: registry.cuzo.dev/plugins/gitea-release
settings:
api_key:
2022-10-06 11:35:19 +02:00
from_secret: drone_api_key
files: [.drone.yml, README.md]
2022-10-06 11:29:07 +02:00
base_url: https://git.parravidales.es
2022-06-14 18:05:15 +02:00
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
2022-06-14 18:05:15 +02:00
image_pull_secrets:
- custom_mirror_registry
2022-06-14 18:05:15 +02:00
depends_on:
- hello world
2022-06-14 18:05:15 +02:00
trigger:
event:
- tag