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
Robert Kaussow cc920b8a37
Some checks failed
continuous-integration/drone/push Build is failing
set rpm destination
2019-02-09 15:58:14 +01:00

63 lines
1.3 KiB
YAML

---
kind: pipeline
name: default
steps:
- name: build
image: xoxys/rpmbuild-centos7
user: root
pull: always
environment:
CUPSRELEASE: "2.2.10"
commands:
- yum install -y gnutls-devel pam-devel dbus-devel avahi-devel systemd-devel
- 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
image: alpine
pull: always
commands:
- apk add --no-cache coreutils
# exclude files
# - sha256sum -b files/!(*.out) > CHECKSUMFILE
- sha256sum -b rpms/* > 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/*
when:
event:
- push
- tag
# - name: publish
# image: plugins/gitea-release
# settings:
# api_key:
# from_secret: github_token
# files:
# - rpms/*
# - sha256sum.txt
# title: $${DRONE_TAG}
# when:
# event:
# - tag