crds-catalog/.drone.yml
Robert Kaussow 892f89b73f
All checks were successful
continuous-integration/drone/push Build is passing
ci: add publish step
2023-03-08 13:19:30 +01:00

81 lines
1.5 KiB
YAML

---
kind: pipeline
name: build
platform:
os: linux
arch: amd64
steps:
- name: generate
image: thegeeklab/alpine-tools
commands:
- make
- name: publish
image: thegeeklab/drone-git-action
settings:
action:
- pages
author_email: shipper@rknet.org
author_name: shipper
branch: catalog
message: auto-update crds catalog
netrc_machine: gitea.rknet.org
netrc_password:
from_secret: gitea_token
pages_directory: dist/
remote_url: https://gitea.rknet.org/infra/${DRONE_REPO_NAME}
when:
ref:
- refs/heads/main
trigger:
ref:
- refs/heads/main
- refs/tags/**
- refs/pull/**
---
kind: pipeline
name: notifications
platform:
os: linux
arch: amd64
steps:
- name: matrix
image: thegeeklab/drone-matrix
settings:
homeserver:
from_secret: matrix_homeserver
password:
from_secret: matrix_password
roomid:
from_secret: matrix_roomid
template: "Status: **{{ .Build.Status }}**<br/> Build: [{{ .Repo.Owner }}/{{ .Repo.Name }}]({{ .Build.Link }}){{ if .Build.Branch }} ({{ .Build.Branch }}){{ end }} by {{ .Commit.Author }}<br/> Message: {{ .Commit.Message.Title }}"
username:
from_secret: matrix_username
when:
status:
- success
- failure
trigger:
ref:
- refs/heads/main
- refs/tags/**
status:
- success
- failure
depends_on:
- build
---
kind: signature
hmac: f93aa1c27fdb75892ba6c5d0574d37332da585254a2af407a209efa244f4ef83
...