cups/.drone.yml

98 lines
2.1 KiB
YAML
Raw Normal View History

2019-02-15 11:41:41 +01:00
---
kind: pipeline
2019-08-20 12:19:46 +02:00
name: build
platform:
os: linux
arch: amd64
2019-02-15 11:41:41 +01:00
steps:
2021-10-23 16:45:03 +02:00
- 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
2019-08-20 12:19:46 +02:00
2021-10-23 16:45:03 +02:00
- name: checksum
image: thegee
commands:
- cd /drone/src/dist/RPMS/x86_64/ && sha256sum * > /drone/src/dist/sha256sum.txt
2019-08-20 12:19:46 +02:00
2021-10-23 16:45:03 +02: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 14:23:29 +02:00
2021-10-23 16:45:03 +02: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 14:01:51 +02:00
2021-10-23 16:45:03 +02:00
trigger:
ref:
- refs/heads/main
- refs/pull/**
2020-06-05 14:23:29 +02:00
- refs/tags/**
2019-08-20 12:19:46 +02:00
---
kind: pipeline
2020-06-05 14:01:51 +02:00
name: notification
2019-02-15 11:41:41 +01:00
2019-08-20 12:19:46 +02:00
platform:
os: linux
arch: amd64
2019-02-15 11:41:41 +01:00
2019-08-20 12:19:46 +02:00
steps:
2021-10-23 16:45:03 +02: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 12:19:46 +02:00
trigger:
ref:
2021-10-23 16:45:03 +02:00
- refs/heads/master
- refs/tags/**
2019-08-20 12:19:46 +02:00
status:
2021-10-23 16:45:03 +02:00
- success
- failure
2019-08-20 12:19:46 +02:00
depends_on:
2021-10-23 16:45:03 +02:00
- build
2019-08-20 12:19:46 +02:00
---
kind: signature
2021-10-23 16:45:56 +02:00
hmac: d02216518e73eccca0f72dc7b5dd8553b6fc44d8bb43513bc38ed49cb458bb3d
2019-02-15 11:41:41 +01:00
2019-08-20 12:19:46 +02:00
...