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

77 lines
1.8 KiB
YAML
Raw Normal View History

2019-02-15 10:41:41 +00:00
---
kind: pipeline
name: default
steps:
- name: build
image: xoxys/rpmbuild-centos7
pull: always
environment:
CUPSRELEASE: "2.2.10"
commands:
- wget https://github.com/apple/cups/releases/download/v$CUPSRELEASE/cups-$CUPSRELEASE-source.tar.gz
- mkdir ./rpms
- rpmbuild -ta --define "_rpmdir $(pwd)/rpms" --without libusb1 cups-$CUPSRELEASE-source.tar.gz
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
# exclude files
# - sha256sum -b files/!(*.out) > CHECKSUMFILE
- 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