This commit is contained in:
parent
21a298ad7b
commit
b960dd5868
58
.drone.yml
Normal file
58
.drone.yml
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: rpmbuild/centos7
|
||||||
|
pull: always
|
||||||
|
commands:
|
||||||
|
- yum install -y wget gnutls-devel pam-devel dbus-devel avahi-devel systemd-devel
|
||||||
|
- wget https://github.com/apple/cups/releases/download/release-2.2.10/cups-2.2.10-source.tar.bz2
|
||||||
|
- rpmbuild -ta --without libusb1 cups-2.2.10-source.tar.bz2
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- tag
|
||||||
|
|
||||||
|
- name: checksum
|
||||||
|
image: alpine
|
||||||
|
pull: always
|
||||||
|
commands:
|
||||||
|
- apk add --no-cache coreutils
|
||||||
|
# exclude files
|
||||||
|
# - sha256sum -b files/!(*.out) > CHECKSUMFILE
|
||||||
|
- sha256sum -b rpmbuild/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:
|
||||||
|
- rpmbuild/RPMS/x86_64/*
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
- tag
|
||||||
|
|
||||||
|
# - name: publish
|
||||||
|
# image: plugins/gitea-release
|
||||||
|
# settings:
|
||||||
|
# api_key:
|
||||||
|
# from_secret: github_token
|
||||||
|
# files:
|
||||||
|
# - rpmbuild/RPMS/x86_64/*
|
||||||
|
# - sha256sum.txt
|
||||||
|
# title: $${DRONE_TAG}
|
||||||
|
# when:
|
||||||
|
# event:
|
||||||
|
# - tag
|
Reference in New Issue
Block a user