2019-02-15 10:41:41 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
2021-10-23 20:52:07 +00:00
|
|
|
name: test
|
2019-08-20 10:19:46 +00:00
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
2019-02-15 10:41:41 +00:00
|
|
|
|
|
|
|
steps:
|
2021-10-23 20:52:07 +00:00
|
|
|
- name: markdownlint
|
|
|
|
image: thegeeklab/markdownlint-cli
|
|
|
|
commands:
|
|
|
|
- markdownlint 'README.md'
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
ref:
|
|
|
|
- refs/heads/master
|
|
|
|
- refs/tags/**
|
|
|
|
- refs/pull/**
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: build-packages
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
2021-10-23 21:40:55 +00:00
|
|
|
- name: build-el7
|
|
|
|
image: thegeeklab/rpmbuild:7
|
|
|
|
commands:
|
|
|
|
- source /drone/src/.drone.env
|
|
|
|
- rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec
|
|
|
|
- ls -l /drone/src/dist/RPMS/x86_64/
|
|
|
|
|
2021-10-23 20:52:07 +00:00
|
|
|
- name: build-el8
|
|
|
|
image: thegeeklab/rpmbuild:8
|
|
|
|
commands:
|
|
|
|
- source /drone/src/.drone.env
|
2021-10-23 21:34:50 +00:00
|
|
|
- rpmbuild -ba --without libusb1 --define "version_ $${CUPS_VERSION##v}" cups.spec
|
2021-10-23 20:52:07 +00:00
|
|
|
- ls -l /drone/src/dist/RPMS/x86_64/
|
2019-08-20 10:19:46 +00:00
|
|
|
|
2021-10-23 14:45:03 +00:00
|
|
|
- name: checksum
|
2021-10-23 15:59:43 +00:00
|
|
|
image: alpine
|
2021-10-23 14:45:03 +00:00
|
|
|
commands:
|
|
|
|
- cd /drone/src/dist/RPMS/x86_64/ && sha256sum * > /drone/src/dist/sha256sum.txt
|
2019-08-20 10:19:46 +00:00
|
|
|
|
2021-10-23 14:45:03 +00:00
|
|
|
- name: changelog-generate
|
|
|
|
image: thegeeklab/git-chglog
|
|
|
|
commands:
|
|
|
|
- git fetch -tq
|
|
|
|
- git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased}
|
2020-06-05 12:23:29 +00:00
|
|
|
|
2021-10-23 14:45:03 +00:00
|
|
|
- name: changelog-format
|
|
|
|
image: thegeeklab/alpine-tools
|
|
|
|
commands:
|
|
|
|
- prettier CHANGELOG.md
|
|
|
|
- prettier -w CHANGELOG.md
|
|
|
|
|
|
|
|
- name: publish-gitea
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
base_url: https://gitea.rknet.org
|
|
|
|
files:
|
|
|
|
- /drone/src/dist/RPMS/x86_64/*
|
|
|
|
- /drone/src/dist/sha256sum.txt
|
|
|
|
note: CHANGELOG.md
|
|
|
|
overwrite: true
|
|
|
|
title: ${DRONE_TAG}
|
|
|
|
when:
|
|
|
|
ref:
|
|
|
|
- refs/tags/**
|
2020-06-05 12:01:51 +00:00
|
|
|
|
2021-10-23 14:45:03 +00:00
|
|
|
trigger:
|
|
|
|
ref:
|
2021-10-23 20:52:07 +00:00
|
|
|
- refs/heads/master
|
2020-06-05 12:23:29 +00:00
|
|
|
- refs/tags/**
|
2021-10-23 20:52:07 +00:00
|
|
|
- refs/pull/**
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- test
|
2019-08-20 10:19:46 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
2021-10-23 20:52:07 +00:00
|
|
|
name: notifications
|
2019-02-15 10:41:41 +00:00
|
|
|
|
2019-08-20 10:19:46 +00:00
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
2019-02-15 10:41:41 +00:00
|
|
|
|
2019-08-20 10:19:46 +00:00
|
|
|
steps:
|
2021-10-23 14:45:03 +00:00
|
|
|
- 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 }}){{/if}} by {{ commit.Author }}<br/> Message: {{ commit.Message.Title }}"
|
|
|
|
username:
|
|
|
|
from_secret: matrix_username
|
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- success
|
|
|
|
- failure
|
2019-08-20 10:19:46 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
ref:
|
2021-10-23 14:45:03 +00:00
|
|
|
- refs/heads/master
|
|
|
|
- refs/tags/**
|
2019-08-20 10:19:46 +00:00
|
|
|
status:
|
2021-10-23 14:45:03 +00:00
|
|
|
- success
|
|
|
|
- failure
|
2019-08-20 10:19:46 +00:00
|
|
|
|
|
|
|
depends_on:
|
2021-10-23 20:53:19 +00:00
|
|
|
- build-packages
|
2019-08-20 10:19:46 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: signature
|
2021-10-23 21:40:55 +00:00
|
|
|
hmac: e3a4496149a9d12470fe6ccf27240160f1a52e62320541e0828c1bc65e2696e1
|
2019-02-15 10:41:41 +00:00
|
|
|
|
2019-08-20 10:19:46 +00:00
|
|
|
...
|