test-drone/.drone.yml

73 lines
1.3 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
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/*
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