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

63 lines
1.4 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
2019-02-09 14:47:13 +00:00
environment:
CUPSRELEASE: "2.2.10"
2019-02-09 13:50:21 +00:00
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:47:13 +00:00
- wget https://github.com/apple/cups/releases/download/v$CUPSRELEASE/cups-$CUPSRELEASE-source.tar.gz
2019-02-09 14:58:14 +00:00
- mkdir ./rpms
- rpmbuild -ta --define "_rpmdir $(pwd)/rpms" --without libusb1 cups-$CUPSRELEASE-source.tar.gz
2019-02-09 13:50:21 +00:00
when:
event:
- push
- tag
- name: checksum
image: alpine
pull: always
commands:
- apk add --no-cache coreutils
# exclude files
# - sha256sum -b files/!(*.out) > CHECKSUMFILE
2019-02-09 15:02:19 +00:00
- sha256sum -b rpms/x86_64/* > sha256sum.txt
2019-02-09 13:50:21 +00:00
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:
2019-02-09 15:02:19 +00:00
- rpms/x86_64/*
2019-02-09 13:50:21 +00:00
when:
event:
- push
- tag
# - name: publish
# image: plugins/gitea-release
# settings:
# api_key:
# from_secret: github_token
# files:
2019-02-09 15:02:19 +00:00
# - rpms/x86_64/*
2019-02-09 13:50:21 +00:00
# - sha256sum.txt
# title: $${DRONE_TAG}
# when:
# event:
# - tag