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
|
2019-02-15 09:02:58 +00:00
|
|
|
- mkdir -p ./rpms/x86_64
|
2019-02-15 09:02:23 +00:00
|
|
|
# - rpmbuild -ta --define "_rpmdir $(pwd)/rpms" --without libusb1 cups-$CUPSRELEASE-source.tar.gz
|
|
|
|
- touch ./rpms/x86_64/testfile
|
2019-02-15 10:23:16 +00:00
|
|
|
- echo ${DRONE_TAG}
|
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
|
|
|
|
|
2019-02-09 22:31:01 +00:00
|
|
|
- name: publish
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
2019-02-09 23:06:38 +00:00
|
|
|
base_url: https://gitea.rknet.org
|
2019-02-09 22:31:01 +00:00
|
|
|
api_key:
|
|
|
|
from_secret: gitea_token
|
|
|
|
files:
|
|
|
|
- rpms/x86_64/*
|
|
|
|
- sha256sum.txt
|
2019-02-15 10:23:16 +00:00
|
|
|
title: ${DRONE_TAG}
|
2019-02-09 22:31:01 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- 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
|