This repository has been archived on 2024-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
cups/.drone.yml

78 lines
1.8 KiB
YAML
Raw Normal View History

2019-02-15 10:41:41 +00:00
---
kind: pipeline
name: default
steps:
- name: build
2019-08-13 20:15:03 +00:00
image: xoxys/rpmbuild
2019-02-15 10:41:41 +00:00
pull: always
environment:
2019-08-13 20:42:01 +00:00
CUPSRELEASE: "${DRONE_TAG##v}"
2019-02-15 10:41:41 +00:00
commands:
2019-08-13 20:57:14 +00:00
- echo $CUPSRELEAS- echo $CUPSRELEASEE
- CUPSRELEASE=${CUPSRELEASE:-2.2.10}
- echo $CUPSRELEASE
2019-08-13 20:42:01 +00:00
- wget https://github.com/apple/cups/releases/download/v${CUPSRELEASE:-2.2.10}/cups-${CUPSRELEASE:-2.2.10}-source.tar.gz
2019-02-15 10:41:41 +00:00
- mkdir ./rpms
2019-08-13 20:42:01 +00:00
- rpmbuild -ta --define "_rpmdir $(pwd)/rpms" --without libusb1 cups-${CUPSRELEASE:-2.2.10}-source.tar.gz
2019-02-15 10:41:41 +00:00
when:
event:
- push
- tag
- name: checksum
2019-02-09 13:50:21 +00:00
image: alpine
2019-02-15 10:41:41 +00:00
pull: always
2019-02-09 13:50:21 +00:00
commands:
2019-02-15 10:41:41 +00:00
- apk add --no-cache coreutils
- sha256sum -b rpms/x86_64/* > sha256sum.txt
when:
event:
- push
- tag
- name: gpgsign
image: plugins/gpgsign:1
pull: always
settings:
key:
from_secret: gpgsign_key
passphrase:
from_secret: gpgsign_passphrase
detach_sign: true
files:
- rpms/x86_64/*
when:
event:
- push
- tag
- name: publish
image: plugins/gitea-release
settings:
base_url: https://gitea.rknet.org
api_key:
from_secret: gitea_token
files:
- rpms/x86_64/*
- sha256sum.txt
2019-02-15 10:42:33 +00:00
title: "${DRONE_TAG}"
2019-02-15 10:41:41 +00:00
when:
event:
- tag
- name: notify
image: plugins/matrix
settings:
homeserver: https://matrix.rknet.org
roomid: MtidqQXWWAtQcByBhH:rknet.org
template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
username:
from_secret: matrix_username
password:
from_secret: matrix_password
when:
status:
- success
- failure