120 lines
1.8 KiB
YAML
120 lines
1.8 KiB
YAML
kind: pipeline
|
|
type: docker
|
|
name: build
|
|
|
|
steps:
|
|
- name: Build docker image
|
|
image: registry.cuzo.dev/plugins/docker
|
|
privileged: true
|
|
volumes:
|
|
- name: manifest
|
|
path: docker
|
|
settings:
|
|
repo: parrazam/drone-ntfy
|
|
auto_tag: true
|
|
mirror: https://registry.cuzo.dev
|
|
username:
|
|
from_secret: docker_hub_user
|
|
password:
|
|
from_secret: docker_hub_pass
|
|
|
|
image_pull_secrets:
|
|
- custom_mirror_registry
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
- tag
|
|
exclude:
|
|
- pull_request
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: manifest
|
|
|
|
steps:
|
|
- name: Upload manifest
|
|
image: registry.cuzo.dev/plugins/manifest
|
|
privileged: true
|
|
volumes:
|
|
- name: manifest
|
|
path: docker
|
|
settings:
|
|
target: parrazam/drone-ntfy
|
|
auto_tag: true
|
|
ignore_missing: true
|
|
username:
|
|
from_secret: docker_hub_user
|
|
password:
|
|
from_secret: docker_hub_pass
|
|
|
|
depends_on:
|
|
- build
|
|
|
|
image_pull_secrets:
|
|
- custom_mirror_registry
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
- tag
|
|
exclude:
|
|
- pull_request
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: release
|
|
|
|
steps:
|
|
- name: release
|
|
image: registry.cuzo.dev/plugins/gitea-release
|
|
settings:
|
|
api_key:
|
|
from_secret: drone_api_key
|
|
base_url: https://git.parravidales.es
|
|
when:
|
|
ref:
|
|
- refs/tags/*
|
|
|
|
depends_on:
|
|
- manifest
|
|
|
|
image_pull_secrets:
|
|
- custom_mirror_registry
|
|
|
|
trigger:
|
|
event:
|
|
- tag
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: Notify result
|
|
|
|
steps:
|
|
- name: send ntfy notification
|
|
image: registry.cuzo.dev/parrazam/drone-ntfy
|
|
settings:
|
|
url: https://ntfy.parravidales.es
|
|
topic: pipelines
|
|
priority: low
|
|
username:
|
|
from_secret: ntfy_user
|
|
password:
|
|
from_secret: ntfy_password
|
|
|
|
depends_on:
|
|
- manifest
|
|
- release
|
|
|
|
image_pull_secrets:
|
|
- custom_mirror_registry
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
- tag
|
|
exclude:
|
|
- pull_request |