test-drone/.drone.yml

60 lines
972 B
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
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/*
image_pull_secrets:
- custom_mirror_registry
depends_on:
- hello world
trigger:
event:
- tag