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

108 lines
2.1 KiB
YAML
Raw Normal View History

2019-02-15 10:41:41 +00:00
---
kind: pipeline
2019-08-20 10:19:46 +00:00
name: build
platform:
os: linux
arch: amd64
2019-02-15 10:41:41 +00:00
steps:
2019-08-20 10:19:46 +00:00
- name: build
image: xoxys/rpmbuild
commands:
- "[ -z \"$CUPSRELEASE\" ] && CUPSRELEASE=2.2.10"
- wget https://github.com/apple/cups/releases/download/v$CUPSRELEASE/cups-$CUPSRELEASE-source.tar.gz
- mkdir ./rpms
2020-06-05 12:01:51 +00:00
- rpmbuild -ta --define "_rpmdir $(pwd)/rpms" --without libusb1 cups-$CUPSRELEASE-source.tar.gz
2019-08-20 10:19:46 +00:00
environment:
2020-06-05 12:01:51 +00:00
CUPSRELEASE: ${DRONE_TAG##v}
2019-08-20 10:19:46 +00:00
- name: checksum
image: alpine
commands:
- apk add --no-cache coreutils
2020-06-05 12:01:51 +00:00
- sha256sum -b rpms/x86_64/* > sha256sum.txt
2019-08-20 10:19:46 +00:00
- name: gpgsign
pull: always
image: plugins/gpgsign:1
settings:
detach_sign: true
files:
2020-06-05 12:01:51 +00:00
- rpms/x86_64/*
2019-08-20 10:19:46 +00:00
key:
from_secret: gpgsign_key
passphrase:
from_secret: gpgsign_passphrase
when:
ref:
exclude:
2020-06-05 12:01:51 +00:00
- refs/pull/**
2019-02-15 10:41:41 +00:00
2020-06-05 12:01:51 +00:00
- name: release
2019-08-20 10:19:46 +00:00
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://gitea.rknet.org
files:
2020-06-05 12:01:51 +00:00
- rpms/x86_64/*
2019-08-20 10:19:46 +00:00
- sha256sum.txt
2020-06-05 12:01:51 +00:00
title: ${DRONE_TAG}
2019-08-20 10:19:46 +00:00
when:
ref:
2020-06-05 12:01:51 +00:00
- refs/tags/**
- 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
source: rpms/x86_64/*.rpm
strip_prefix: rpms/
target: /centos/7/
2019-08-20 10:19:46 +00:00
---
kind: pipeline
2020-06-05 12:01:51 +00:00
name: notification
2019-02-15 10:41:41 +00:00
2019-08-20 10:19:46 +00:00
platform:
os: linux
arch: amd64
2019-02-15 10:41:41 +00:00
2019-08-20 10:19:46 +00:00
steps:
- name: matrix
image: plugins/matrix
settings:
2020-06-05 12:01:51 +00:00
homeserver:
from_secret: matrix_homeserver
2019-08-20 10:19:46 +00:00
password:
from_secret: matrix_password
2020-06-05 12:01:51 +00:00
roomid:
from_secret: matrix_roomid
2019-08-20 10:19:46 +00: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 12:01:51 +00:00
- refs/tags/**
2019-08-20 10:19:46 +00:00
status:
- success
- failure
depends_on:
- build
---
kind: signature
2020-06-05 12:01:51 +00:00
hmac: d5f65915907940d58f7753b74590a9e5ca1889a864983cec06fd7b542606e70a
2019-02-15 10:41:41 +00:00
2019-08-20 10:19:46 +00:00
...