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

60 lines
1.3 KiB
YAML
Raw Normal View History

2019-02-09 13:50:21 +00:00
---
kind: pipeline
name: default
steps:
- name: build
2019-02-09 14:37:12 +00:00
image: xoxys/rpmbuild-centos7
2019-02-09 13:56:11 +00:00
user: root
2019-02-09 13:50:21 +00:00
pull: always
commands:
2019-02-09 14:37:12 +00:00
- yum install -y gnutls-devel pam-devel dbus-devel avahi-devel systemd-devel
2019-02-09 14:41:30 +00:00
- wget https://github.com/apple/cups/releases/download/v2.2.10/cups-2.2.10-source.tar.gz
2019-02-09 13:50:21 +00:00
- 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