cups/.drone.yml

106 lines
2.1 KiB
YAML
Raw Normal View History

2019-02-15 11:41:41 +01:00
---
kind: pipeline
2019-08-20 12:19:46 +02:00
name: build
platform:
os: linux
arch: amd64
2019-02-15 11:41:41 +01:00
steps:
2019-08-20 12:19:46 +02:00
- name: build
2020-09-27 22:48:45 +02:00
image: thegeeklab/rpmbuild
2019-08-20 12:19:46 +02:00
commands:
2020-06-05 14:05:16 +02:00
- "[ -z \"$BUILD_VERSION\" ] && BUILD_VERSION=2.3.3"
2020-06-12 13:30:30 +02:00
- wget -q https://github.com/apple/cups/releases/download/v$BUILD_VERSION/cups-$BUILD_VERSION-source.tar.gz
2020-06-12 13:28:29 +02:00
- rpmbuild -ta --without libusb1 cups-$BUILD_VERSION-source.tar.gz
2019-08-20 12:19:46 +02:00
environment:
2020-06-05 14:05:16 +02:00
BUILD_VERSION: ${DRONE_TAG##v}
2019-08-20 12:19:46 +02:00
- name: checksum
image: alpine
commands:
- apk add --no-cache coreutils
2020-06-12 13:28:29 +02:00
- sha256sum -b dist/RPMS/x86_64/* > dist/sha256sum.txt
2019-08-20 12:19:46 +02:00
- name: gpgsign
pull: always
image: plugins/gpgsign:1
settings:
detach_sign: true
files:
2020-06-12 13:28:29 +02:00
- dist/RPMS/x86_64/*
2019-08-20 12:19:46 +02:00
key:
from_secret: gpgsign_key
passphrase:
from_secret: gpgsign_passphrase
2020-06-05 14:23:29 +02:00
- name: release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://gitea.rknet.org
files:
2020-06-12 13:28:29 +02:00
- dist/RPMS/x86_64/*
- dist/sha256sum.txt
2020-06-05 14:23:29 +02:00
title: ${DRONE_TAG}
2019-08-20 12:19:46 +02:00
when:
ref:
2020-06-05 14:23:29 +02:00
- refs/tags/**
2020-06-05 14:01:51 +02:00
- name: repository
image: plugins/s3
settings:
access_key:
from_secret: s3_access_key
bucket: packages
endpoint: https://sp.rknet.org
path_style: true
secret_key:
from_secret: s3_secret_access_key
2020-06-12 13:28:29 +02:00
source: dist/RPMS/x86_64/*.rpm
strip_prefix: dist/RPMS/
2020-06-05 14:01:51 +02:00
target: /centos/7/
2020-06-05 14:23:29 +02:00
when:
ref:
- refs/tags/**
2019-08-20 12:19:46 +02:00
---
kind: pipeline
2020-06-05 14:01:51 +02:00
name: notification
2019-02-15 11:41:41 +01:00
2019-08-20 12:19:46 +02:00
platform:
os: linux
arch: amd64
2019-02-15 11:41:41 +01:00
2019-08-20 12:19:46 +02:00
steps:
- name: matrix
image: plugins/matrix
settings:
2020-06-05 14:01:51 +02:00
homeserver:
from_secret: matrix_homeserver
2019-08-20 12:19:46 +02:00
password:
from_secret: matrix_password
2020-06-05 14:01:51 +02:00
roomid:
from_secret: matrix_roomid
2019-08-20 12:19:46 +02:00
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
trigger:
ref:
- refs/heads/master
2020-06-05 14:01:51 +02:00
- refs/tags/**
2019-08-20 12:19:46 +02:00
status:
- success
- failure
depends_on:
- build
---
kind: signature
2020-09-27 22:48:45 +02:00
hmac: a48861856f45a5fea19c866058aa857abcdd77d604be1835d254407e7d7d0688
2019-02-15 11:41:41 +01:00
2019-08-20 12:19:46 +02:00
...