cups/.drone.yml

102 lines
2.2 KiB
YAML

---
kind: pipeline
name: build
platform:
os: linux
arch: amd64
steps:
- name: build
image: thegeeklab/rpmbuild
commands:
- source .drone.env
- wget -q https://github.com/OpenPrinting/cups/releases/download/v$CUPS_VERSION/cups-v$CUPS_VERSION-source.tar.gz
- rpmbuild -ta --without libusb1 cups-${CUPS_VERSION##v}-source.tar.gz
- name: checksum
image: thegee
commands:
- cd /drone/src/dist/RPMS/x86_64/ && sha256sum * > /drone/src/dist/sha256sum.txt
- 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}
depends_on:
- tags
- name: changelog-format
image: thegeeklab/alpine-tools
commands:
- prettier CHANGELOG.md
- prettier -w CHANGELOG.md
depends_on:
- changelog-generate
- 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/**
trigger:
ref:
- refs/heads/main
- refs/pull/**
- refs/tags/**
---
kind: pipeline
name: notification
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 }}){{/if}} by {{ commit.Author }}<br/> Message: {{ commit.Message.Title }}"
username:
from_secret: matrix_username
when:
status:
- success
- failure
trigger:
ref:
- refs/heads/master
- refs/tags/**
status:
- success
- failure
depends_on:
- build
---
kind: signature
hmac: ef12dc4cc2bd5bdd48ad22c1671fbc838e4e3e40163b3a3a3b8c893d19ea7e19
...