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

80 lines
1.8 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-15 09:02:23 +00:00
# - wget https://github.com/apple/cups/releases/download/v$CUPSRELEASE/cups-$CUPSRELEASE-source.tar.gz
- mkdir ./rpms/x86_64
# - rpmbuild -ta --define "_rpmdir $(pwd)/rpms" --without libusb1 cups-$CUPSRELEASE-source.tar.gz
- touch ./rpms/x86_64/testfile
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:
base_url: https://gitea.rknet.org
api_key:
from_secret: gitea_token
files:
- rpms/x86_64/*
- sha256sum.txt
2019-02-15 09:02:23 +00:00
title: $DRONE_COMMIT
when:
event:
2019-02-15 09:02:23 +00:00
- push
- 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